← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243530]: Issue on get clipboard

 

Question #243530 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243530

    Status: Open => Answered

RaiMan proposed the following answer:
I just tested on my Win8 64 and it works as expected if the click
selects something on the screen.

so for testing add wait()'s to see what happens:

click("1391771317142.png"); type('c', KeyModifier.CTRL)
a = Env.getClipboard()
print a
wait(3)
click("1391771329823.png"); type('c', KeyModifier.CTRL)
b = Env.getClipboard()
print b

BTW: use ; to separate statements on the same line, because when using ,
internally unnecessarily an anonymous tuple from the 2 statement's
return values is created (which might be costly in some situations).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.