sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04740
Re: [Question #168555]: Help with script
Question #168555 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168555
Status: Answered => Open
Mike is still having a problem:
----wait(800, )
Nope it did not come up with error but now changed it to wait(img,
FOREVER) if i got this right, it'll wait untill that img shows then
continue..
# This makes sure your in Space Base
click( )
wait(3)
# This refuels your fleet
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
# This starts your Instances
click( )
wait(3)
click( )
wait(3)
click( )#Instance Lvl
wait(3)
click( )
wait(3)
click( )#Fleet1
wait(3)
click( )#Fleet2
wait(3)
click( )#Fleet3
wait(3)
click( )#Fleet4
wait(3)
click( )#Fleet5
wait(3)
click( )#Fleet6
wait(3)
click( )
wait(3)
click( )
wait( , FOREVER)
click( )
#This will sort Instances mail and box
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait(3)
click( )
wait( )
wait(3)
# --- this loops as long as img is visible
while exists( , 0): # i think this should have been if cos if exists it'll repeat top script
click(getLastMatch())
if exists( , 0): #this should be if exists it'll continue and popup message Under ATTACK
continue # skip the rest and start next turn
click()
# all your other clicks and waits - do i have to repeat myself????
popup("Under ATTACK!")
What i would like is something like this:
if exists( ,0)
repeat script from top again!
if exists( ,0)
continue
popup("Under ATTACK!")
Sorry for being a pain
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.