Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread remel ricasa
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

Summary changed to:
how can i replay the 1st loop automatically if the 2nd loop is finished?

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread Dude
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

Dude posted a new comment:
Hi , if am not wrong

According to my understanding 
U can put your code inside a function and call it

like:

def function1():
 while not exists(manster): #(this 1st loop wont replay if the 2nd loop is 
finish...)
  if exists(hemp):
   click(hemp)
  if exists(gather):
   click(gather)
  if exists(lvlup):
   click(lvlup)
  if exists(manster):
   continue


def function2():
 while exists(manster):
   if exists(ready):
click(ready)
   if not exists(gobs):
click(iop)
   if exists(lock):
click(lock)
   if exists(gobs):
click(turn)
if exists(fnsh):
click(fnsh)
  function1()

Note:
In your first loop , u r checking for the condition while not exists(manster):. 
So when manster is not there , then only it will go inside this loop. Then why 
are adding this command at last   if exists(manster):continue. How do u except 
manster to exists. this condition will fail

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread remel ricasa
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

remel ricasa posted a new comment:
the reason is that i didnt know how to use the def function...

and when i use your function code to call the loop the last part
function1() makes me syntax error expexting indent @_@

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread remel ricasa
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

remel ricasa posted a new comment:
THANKS A LOT

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread remel ricasa
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

remel ricasa posted a new comment:
ill try i think it will work now :D

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread RaiMan
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

RaiMan proposed the following answer:
pls. set to solved, if you finally succeed and comment your solution
with a few words.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #171331]: how can i replay the 1st loop automatically if the 2nd loop is finished?

2011-09-16 Thread remel ricasa
Question #171331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171331

Status: Answered = Solved

remel ricasa confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp