OSX 10.10. Mouse clicks in a loop failing / slowing down
Hi,
I was writing a loop clicking on a game board which should help to me click 24 buttons, here's the code:
try:
print "Found gameboard"
for x in range (0,24):
for m in xrange(2):
except Findfailed:
print "findgameboarda
and the above codes is inside a while loop...
however while i run the code, it can do the clicking sometimes, but just 1~2 loops.
afterward the whole program is stuck in some part of the 24 loops click, sometimes while i press "cmd + tab" and it moves again...
and sometimes it just don't move... in that case i have to stop the script manually.
here's the messages:
Let's find gameboard
Found gameboard
Click: ( -145 , -150 )
Click: ( -68 , -148 )
Click: ( 2 , -144 )
Click: ( 83 , -148 )
Click: ( 156 , -147 )
java.lang.
at java.lang.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
i still can't figure out why sometimes it clicks all 24 points, but sometimes just stop without any warnings.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: