New question #698529 on SikuliX:
https://answers.launchpad.net/sikuli/+question/698529
This code displays the mouse position until OK is pressed:
def locationDisplay():
lcount = 0
while True:
lcount+=1
mouseposition = Mouse.at()
print mouseposition
mslx = str(mouseposition.x)
msly = str(mouseposition.y)
bmsg = "Location is " + mslx + "," + msly + " Loop:" + str(lcount)
print bmsg
result = Do.popup(bmsg,1)
print result
if result is None:
continue
exit()
return
The problem I have is after a random number of loops (between 1 and 29)
Do.popup() returns True instead of None even though I haven't pressed OK.
Can you think what might be causing this?
(Windows 10 SikuliX 2.0.5)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp