Get Clipboard Text
akleine
![]()
- Joined: Sep 30, 2010
- Posts: 7
Hello !
I have Problems with the function Get ClipBoard Text.
Before this command I set the 'sent key' Control C.
In debugging mode everythings fine.
But in process it crashes with error 'cannot retieve clipboard content'.
Also I tried to insert a wait before the get clipboad command it doesn't work.
Whats wrong?
A.Kleine
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2396
akleine
![]()
- Joined: Sep 30, 2010
- Posts: 7
Hello Samantha,
the problem seems to be the clear clipboard event. If I disable this event its runs.
A.Kleine
akleine
![]()
- Joined: Sep 30, 2010
- Posts: 7
Hello Samatha, I have figure out thats the problems is the clear clipboard event which I set before the sent key Ctrl C. If I disable this event its work. Sorry I can't sent any file attachment 17 kb. Not possible !?? I gave up after 10 times A.Kleine
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2396
winautouser
![]()
- Joined: May 21, 2010
- Posts: 15
I have the same problem. I tried removing my "clear clipboard" command i had in there and it still fails with "cannot retrieve clipboard contents".
Uploading an example job. It's not a complete job because I'm not finished writing all of the actions but it will show the error.
winautouser
![]()
- Joined: May 21, 2010
- Posts: 15
Well I fixed it. :) Not sure why but I added a "retry if fails" to it and it worked. I set it to retry 2 times and it worked. Shouldn't have to do that but if it works then I'm happy.
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2396
As I previously mentioned, in order for it not to fail, and to be realistic over our machine's performance, we would need to give the application some time to "think" that it has something new on the clipboard and process the type of information it has.
You need to give enough time for the process to "learn" that something is on the clipboard, as well as enough time to "return" the information that it has on the clipboard prior to emptying it.
Do:
Set Clipboard Text
Wait 0.5
Send Keys: {Control}({V})
Wait 0.5
Empty Clipboard
Don't:
Set Clipboard Text
Send Keys: {Control}({V})
Empty Clipboard
Hope the above makes sense.

Samantha