Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
RaiMan proposed the following answer:
... of course you might check the should-end-condition at various other places
inside the loop and use
if someConditionIsTrue(): break # which jumps out of the loop
--
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
RaiMan proposed the following answer:
WARNING: Do not use the solution in comment #5, since it has the risk of
running into a stack overflow, since test2 and test3 are calling each
other without terminating
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
Vit proposed the following answer:
1) Save 3 files in the same folder (for example: test1.sikuli, test2.sikuli,
test3.sikuli)
2) #test1.sikuli code:
import test2
import test3
test2.script()
3)
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
shelby proposed the following answer:
Edit:
Sleep(5000)
While True
If WinActive("[CLASS:SunAwtFrame]") Then ; Check if Notepad is currently
active.
;Sikuli is Active (error)
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
shelby proposed the following answer:
Here is a solution I came up with using AutoIt Script (free). Run this
script before beginning Sikuli's script.
Sleep(5000)
While True
If
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
Shafiq Khan posted a new comment:
I tried using a loop in batch script. It didn't work since batch
executes linearly. It waits for the sikuli script to finish. But my
sikuli script is on an infinite loop.
New question #258380 on Sikuli:
https://answers.launchpad.net/sikuli/+question/258380
exit([value]) stops the script. Is there any way to restart the script after
stopping? The only way I can think of is to run another script that looks for
the Play button.
--
You received this question
Question #258380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258380
Status: Open = Answered
RaiMan proposed the following answer:
You either have to run your scripts from command line and setup
appropriate command scripts or organize your scripts as modules with def
8 matches
Mail list logo