← 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

Sikulipro posted a new comment:
What happens now.

hover("1391772516191.png")
click("1391771317142.png"), type('c', KeyModifier.CTRL)
a = Env.getClipboard()

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

if a == b:
    print "equal "
else:
    print "not equal"
    
If i make changes in any of the texts or both text , it prints  print "not equal"  which is correct, now when i run this script again it prints equal which is incorrect...it prints incorrect answer till i do not make changes again, then when i make changes it print correct answer....

i this happens because when i run the script in first attempt it
consider both the values and in second attempt it consider second value
for both the text.till i do not make changes in any text.

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