[Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-15 Thread Hashtag123
New question #268175 on Sikuli: https://answers.launchpad.net/sikuli/+question/268175 I have a task in Sikuli and I just can't figure out how to accomplish it. I want to start a script and with it the LEFT Arrow key should be pressed repeatedly. As soon as a certain image (Pic_1) appears the RIG

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-15 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Hashtag123 gave more information on the question: So here is my approach and it works like I want it to (but too slow): setAutoWaitTimeout(0) wait(10) while True: while True: if not exists(Patter

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Open => Needs information RaiMan requested more information: what version of Sikuli? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer co

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Needs information => Open Hashtag123 gave more information on the question: SikulixIDE 1.1.0 I think I could speed up the process with regions but somehow I am unable to use them propably. This

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Hashtag123 gave more information on the question: *properly -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Hashtag123 gave more information on the question: When I use "exists" instead of "not exists" it is still very slow: wait(10) while True: while True: if exists(Pattern(Pattern("02_right-1.png").s

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Open => Answered RaiMan proposed the following answer: just for the records (nothing to do with your problem) makes no sense: Pattern(Pattern("02_right-1.png").similar(0.75)) this is enough: Pa

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Answered => Open Hashtag123 is still having a problem: Thanks so far =) Actually the stuff IS in a windows and DOES appear always at the same position. Subject: I am testing a small game which

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Open => Answered RaiMan proposed the following answer: ok, this visual setup is really one of the more difficult ones, if you are talking about the vertikal square with the thin border and the tr

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-16 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 RaiMan proposed the following answer: ... a short video would help me a lot to understand the dynamics. -- You received this question notification because you are a member of Sikuli Drivers, which is an ans

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-21 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Answered => Open Hashtag123 is still having a problem: Sorry for the late Answer. I finally found time to proceed my project and solved my problem. Using absolut regions made the script pretty f

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-22 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Open => Answered RaiMan proposed the following answer: now = time.time() in5min = now + 5 * 60 * 1000 while time.time() < in5min: the granularity of time.time() is milliseconds. hence 5 * 60 *

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-22 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Status: Answered => Solved Hashtag123 confirmed that the question is solved: Thanks a lot =) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer co

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-27 Thread Hashtag123
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 Hashtag123 posted a new comment: If I may correct you. in5min = now + 5 * 60 worked for me. Somehow * 1000 wasnt needed. -- You received this question notification because you are a member of Sikuli Drive

Re: [Sikuli-driver] [Question #268175]: Loop two different actions in Sikuli forever

2015-06-27 Thread RaiMan
Question #268175 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268175 RaiMan posted a new comment: Thanks for the correction ;-) I remember, that I was in a hurry and had a bad feeling exactly about that, but was too lazy to verify the time.time() return value, which indeed is