Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-31 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Eric G confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-31 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Status: Answered => Solved Eric G confirmed that the question is solved: Thank you so much, I get it now. You really helped me out a lot with the findany example! -- You received this question

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-31 Thread RaiMan
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 RaiMan proposed the following answer: - how to use findAny() ... based on your first exists example. matches = reg.findAny("pic1", "pic2", "pic3", ... more pictures) if (len(matches) == 0): print "none

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-31 Thread RaiMan
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 RaiMan proposed the following answer: - failsafe feature that terminates the program add this to the top of your script: def terminateHandler(event): exit(1) Env.addHotkey("c", KeyModifier.SHIFT +

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Eric G posted a new comment: in pyautogui there is a failsafe feature that terminates the program if the mouse cursor is detected at (0,0) is there a way I could implement that in Sikuli? I cannot make use

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread RaiMan
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 RaiMan proposed the following answer: findAny not findAll -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Eric G posted a new comment: Hi again, I've been messing around with findAll and other similar functions from the documentation page... while True: testpics =

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Eric G posted a new comment: Thanks for such a fast response I'll definitely look into findAny! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread RaiMan
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Status: Open => Answered RaiMan proposed the following answer: Hope you using the latest version (2.0.2 sice yesterday) ;-) Depending on the size of the region (BTW: Reg should be reg by convention:

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Description changed to: Trying to teach myself programming, having a lot of issues with looping...can someone please help me out? I've been stumped for a while. this is the part I'm having trouble with if

Re: [Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
Question #688352 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688352 Description changed to: Trying to teach myself programming, having a lot of issues with looping...can someone please help me out? I've been stumped for a while. this is the part I'm having trouble with if

[Sikuli-driver] [Question #688352]: Mouse stuck in loop

2020-01-30 Thread Eric G
New question #688352 on Sikuli: https://answers.launchpad.net/sikuli/+question/688352 Trying to teach myself programming, having a lot of issues with looping...can someone please help me out? I've been stumped for a while. this is the part I'm having trouble with if selected == Comps[0]: