Do.popup() returns incorrectly
This code displays the mouse position until OK is pressed:
def locationDisplay():
lcount = 0
while True:
lcount+=1
print mouseposition
mslx = str(mousepositi
msly = str(mousepositi
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)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mike for more information if necessary.