sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11441
Re: [Question #201896]: Return back to?
Question #201896 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/201896
Status: Open => Solved
Thomas confirmed that the question is solved:
Well i figured it out took some time and i could not find it online but i figured it out.
Settings.MoveMouseDelay = 0 # Makes the mouse move faster .5 is default
Mine = exists (YOUR IMAGE) #Declaring Mine
Ore = exists (YOUR IMAGE) #Declaring Ore
while Ore:
while exists (YOUR IMAGE):
wait (3)
rightClick (YOUR IMAGE) #The "While Ore" section is were it drops your ore when obtained
click (YOUR IMAGE)
if Mine:
wait (YOUR IMAGE, FOREVER)
wait (YOUR IMAGE, FOREVER) #The "If mine" section mines more ore if you have non to drop
click (YOUR IMAGE)
I used this for a mining game and basically everytime it mines an ore it
will drop it. Creating endless exp.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.