sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54027
[Question #688473]: Infinite Loop isn't working
New question #688473 on Sikuli:
https://answers.launchpad.net/sikuli/+question/688473
Hello,
I have a very simple loop, that's refusing to work for me.
while True:
if exists(myImage):
ProcessConfirmations()
else:
wait(1.0)
click(RefreshButton)
If it detects 'myImage' it runs 'ProcessConfirmations' fine.
But if it doesn't, it isn't running the else statement at all.
It just hangs there, and doesn't even error out.
I appreciate the help,
Maurice
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.