"cannot open clipboard"

Discuss RoboTask here
Post Reply
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

"cannot open clipboard"

Post by wildrems »

hi everyone,
i often receive this message "cannot open clipboard" wich end up stopping my task.
i try to clear the clipboard before every use of it. even a the begining of the task. but it's not working.
is what i'm doing correct or not. is there a solution.
any thing is welcome, as long as it help
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

"cannot open clipboard"

Post by Oleg »

Can you send a part of log file with error messages?
It would be great if you will send your task too.
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

"cannot open clipboard"

Post by wildrems »

hi oleg,
i guess that is what you want me to post?
I: 2006-06-09 16:32:28: ****** Starting task... ******************
I: 2006-06-09 16:32:28: Task started with priority: Normal
I: 2006-06-09 16:32:29: Executing "Clear Clipboard"
I: 2006-06-09 16:32:29: Executing "Delay 2000 ms"
I: 2006-06-09 16:32:31: Executing "Run "user.xls""
I: 2006-06-09 16:32:38: Executing "Delay 2000 ms"
I: 2006-06-09 16:32:40: Executing "Send keys to active window"
I: 2006-06-09 16:32:40: Executing "Delay 1000 ms"
I: 2006-06-09 16:32:41: Executing "Clear Clipboard"
I: 2006-06-09 16:32:41: Executing "Delay 2000 ms"
I: 2006-06-09 16:32:43: Executing "Copy"
I: 2006-06-09 16:32:43: Executing "Get Text"
E: 2006-06-09 16:32:43: Cannot open clipboard
E: 2006-06-09 16:32:43: An error occured. Reconfigure this step.
E: 2006-06-09 16:32:43: Task execution is aborted
 
and here is the task
;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1171077109
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task24"
Hide=INTEGER|0
ID=INTEGER|448779403
Name=STRING|"check user exist"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action20=FOLDER
Action21=FOLDER
Action22=FOLDER
Action23=FOLDER
Action24=FOLDER
Action25=FOLDER
Action26=FOLDER
Action27=FOLDER
Action28=FOLDER
Action29=FOLDER
Action3=FOLDER
Action30=FOLDER
Action31=FOLDER
Action32=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_CLIPBOARD_CLEAR"
Enabled=INTEGER|-1
Name=STRING|"Clear Clipboard"
[Actions\Action10]
ActionID=STRING|"A_CLIPBOARD_GET"
Enabled=INTEGER|-1
Name=STRING|"Get Text"
Params=FOLDER
[Actions\Action10\Params]
variable=STRING|"nom"
[Actions\Action11]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action11\Params]
delay=STRING|"20"
[Actions\Action12]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action12\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{RIGHT}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action13]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action13\Params]
delay=STRING|"10"
[Actions\Action14]
ActionID=STRING|"A_CLIPBOARD_CLEAR"
Enabled=INTEGER|-1
Name=STRING|"Clear Clipboard"
[Actions\Action15]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action15\Params]
delay=STRING|"20"
[Actions\Action16]
ActionID=STRING|"A_CLIPBOARD_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy"
Params=FOLDER
[Actions\Action16\Params]
mode=STRING|"1"
[Actions\Action17]
ActionID=STRING|"A_CLIPBOARD_GET"
Enabled=INTEGER|-1
Name=STRING|"Get Text"
Params=FOLDER
[Actions\Action17\Params]
variable=STRING|"nom_complet"
[Actions\Action18]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action18\Params]
delay=STRING|"20"
[Actions\Action19]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action19\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{RIGHT}{RIGHT}{RIGHT}{RIGHT}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action2]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action2\Params]
delay=STRING|"20"
[Actions\Action20]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action20\Params]
delay=STRING|"20"
[Actions\Action21]
ActionID=STRING|"A_CLIPBOARD_CLEAR"
Enabled=INTEGER|-1
Name=STRING|"Clear Clipboard"
[Actions\Action22]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action22\Params]
delay=STRING|"20"
[Actions\Action23]
ActionID=STRING|"A_CLIPBOARD_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy"
Params=FOLDER
[Actions\Action23\Params]
mode=STRING|"1"
[Actions\Action24]
ActionID=STRING|"A_CLIPBOARD_GET"
Enabled=INTEGER|-1
Name=STRING|"Get Text"
Params=FOLDER
[Actions\Action24\Params]
variable=STRING|"group"
[Actions\Action25]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action25\Params]
delay=STRING|"20"
[Actions\Action26]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""compmgmt.msc"""
Params=FOLDER
[Actions\Action26\Params]
program=STRING|"C:\WINDOWS\system32\compmgmt.msc"
runas=STRING|"0"
wait=STRING|"1"
[Actions\Action27]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action27\Params]
delay=STRING|"20"
[Actions\Action28]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action28\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{DOWN}{DOWN}{DOWN}{DOWN}{RIGHT}{DOWN}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action29]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action29\Params]
delay=STRING|"10"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""user.xls"""
Params=FOLDER
[Actions\Action3\Params]
program=STRING|"d:\user\user.xls"
runas=STRING|"0"
wait=STRING|"1"
[Actions\Action30]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action30\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{TAB}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action31]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action31\Params]
delay=STRING|"10"
[Actions\Action32]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action32\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{nom}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action4\Params]
delay=STRING|"20"
[Actions\Action5]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action5\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{DOWN}{DOWN}"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action6]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action6\Params]
delay=STRING|"10"
[Actions\Action7]
ActionID=STRING|"A_CLIPBOARD_CLEAR"
Enabled=INTEGER|-1
Name=STRING|"Clear Clipboard"
[Actions\Action8]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action8\Params]
delay=STRING|"20"
[Actions\Action9]
ActionID=STRING|"A_CLIPBOARD_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy"
Params=FOLDER
[Actions\Action9\Params]
mode=STRING|"1"
hope you can help me.
wildrems
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

"cannot open clipboard"

Post by Oleg »

Hmm... Your task is working fine.
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

"cannot open clipboard"

Post by wildrems »

that's weird,
because this task just work one time. the second time, it did not work. maybe my windows is to slow. i run robotask on a virtual server. and it's slow.
anyway, thanks a lot. i will try to modify this task or find a other way around.
thanks for your help.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

"cannot open clipboard"

Post by Oleg »

Maybe. I'll check this.
Post Reply