← Back to team overview

sikuli-driver team mailing list archive

[Question #188360]: Cant use def!?!?

 

New question #188360 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188360

I wanted a bot for a game and I found one on a forum.
And it seems like my sikuli can handle def command(or whatever it is). When i run it sikuli closes in like 1 sec then sikuli pop ups again leaving no error.
This is how some of the code looks:

def letsmine():
    if mineiron == True:
        if gamezone.exists(iron):
            gamezone. click(iron, 0)
            wait(waittime)
            levelup()
    if mineiron == True:
        if gamezone.exists(iron2):
            gamezone. click(iron2, 0)
            wait(waittime)
            levelup()
    if mineiron == True:
        if gamezone.exists(iron3):
            gamezone. click(iron3, 0)
            wait(waittime)
            levelup()

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