Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread matteoa
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 matteoa posted a new comment: Thanks a lot Masuo! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. __

Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread matteoa
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 Status: Answered => Solved matteoa confirmed that the question is solved: Thanks masuo, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer

Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread masuo
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 masuo posted a new comment: This is one of ideas for watchdog, please modify codes as what you want to do. -- You received this question notification because your team Sikuli Drivers is an answer contact fo

Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread masuo
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 Status: Open => Answered masuo proposed the following answer: This script run continuously, if main script do not delay. import thread duration = 10 #-count down and type hotkey def Type_Hotkey(name

Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread matteoa
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 Status: Answered => Open matteoa is still having a problem: Hello Masuo, thanks a lot for helping. I tried to copy and paste your script directly in the 1.1.4 ide and run from there. It closes the ide,

Re: [Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread masuo
Question #675958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/675958 Status: Open => Answered masuo proposed the following answer: This is a way to use hotkey handler. import thread #-count down and type hotkey def Type_Hotkey(name,*args): cnt = args[0] while

[Sikuli-driver] [Question #675958]: How to implement a watchdog timer?

2018-11-06 Thread matteoa
New question #675958 on Sikuli: https://answers.launchpad.net/sikuli/+question/675958 hello all, I have a Sikulix script that automate a sw that sometimes hangs or behave in unusual ways. So far the script sometimes waits for the appearance of an image and if the image doesn't appears it remains