Question #232234 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232234
Status: Open => Answered
RaiMan proposed the following answer:
text = Env.getClipboard()
--- comment
wait("dlllllill.png", 30*60) # This will spinlock for 30 minutes for the button
to appear
if exists("dlllllill.png"):
this sequence does not make sense:
if the wait runs into a timeout after 30 minutes, the script will stop anyway
(FindFailed exception)
so if the script continues, you know the image has appeared.
The if is not necessary.
--- you told, you cannot use paste(), but now you are using it !
Since there currently is a problem when using Env.getClipboard() and paste():
it only works the first time. consecutive paste()'s will always paste the first
value.
The only possibility is:
type("v", KEY_CMD)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp