Question #141369 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/141369

Danielo gave more information on the question:
Here is the last version, wich perfectly works despite one picture, that
takes a very loooooooong time to find.


from sikuli.Sikuli import *
myScriptPath = "E:\My Dropbox\Sikuli"

# all systems
if not myScriptPath in sys.path: sys.path.append(myScriptPath)

import lucha
ejecuciones=0
level_up=Pattern("Campeslnopas.png").targetOffset(-2,21)

with Region(0,40,1053,841):

                while True:
                                        click(Pattern("U.png").similar(0.00))
                                        sleep(0.2)
                                        segar=exists("Segar.png")
                                        if segar:
                                                click("Segar.png")
                                                if (ejecuciones % 15)==0:       
                                                        sleep(5)
                                                        lucha.mata(  )
                                                else:
                                                        sleep(8)
                                        
                                        if exists(level_up):
                                                click(level_up)
                                        ejecuciones+=1
                                        
                                        if exists(lucha.pasar):
                                                lucha.luchar()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to