sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04735
[Question #168555]: Help with script
New question #168555 on Sikuli:
https://answers.launchpad.net/sikuli/+question/168555
Hi all, i need help with my script please!
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(800, )
wait(3)
click( )
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait( )
wait(3)
Below is where the problem is from click (getLastMatch())
# --- this loops as long as img is visible
while exists(img , 0):
click(getLastMatch())
if exists(img , 0):
continue # skip the rest and start next turn
popup("Under ATTACK!")
click(getLastMatch()) in the script is this the right one to do, i want it to go back to first line of the script and start again. But it is continuing to popup Under ATTACK.
Please help me on what i need to do!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.