Re: [Sikuli-driver] [Question #684220]: runscript

2019-10-08 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Open => Solved

gob confirmed that the question is solved:
ty

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-26 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Answered => Open

gob is still having a problem:
Thank you for all your help.
I've tried again 

runScript(xxx)
while True:
 runScript(yyy)
 runScript(zzz)

and works fine at last.
I seem to have jumped to the conclusion.


"looks like you are terminating the complete run (which is an endless loop) by 
pressing the abort/stop hotkey."

yes I used the abort/stop hotkey.
and  this endless loop still keeping occur when i use the abort/stop hotkey in 
this codes.

How can i  stop this endless loop in this codes?

Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-26 Thread RaiMan
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

RaiMan proposed the following answer:
looks like you are terminating the complete run (which is an endless
loop) by pressing the abort/stop hotkey.

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-26 Thread Manfred Hampl
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Open => Answered

Manfred Hampl proposed the following answer:
"I don't know why this happen"
Nor do I.

What you could try:
- check the return value and output of the scripts, see 
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other
- put wait statements between the runScript statements to slow down execution

Maybe RaiMan can help better.

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Answered => Open

gob is still having a problem:
Thank you for your reply

Each script works without error


runScript("C:\script\VGWRM9.sikuli")
runScript("C:\script\VGWRM10.sikuli")
works  without error


But
while True:
 runScript("C:\script\VGWRM9.sikuli")
 runScript("C:\script\VGWRM10.sikuli")
get error

I don't know why this  happen

Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread Manfred Hampl
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Open => Answered

Manfred Hampl proposed the following answer:
The error messages refer to your VGWRM9 and VGWRM10 scripts.

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Needs information => Open

gob gave more information on the question:
Thanks for your reply

https://imgur.com/a/3zHDE6O


[error] script [ C:\script\VGWRM9.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\script\VGWRM9.sikuli\VGWRM9.py", line 75, in  java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.stopRunScript(SikuliIDE.java:2671)
at org.sikuli.ide.SikuliIDE.onStopRunning(SikuliIDE.java:3016)
at org.sikuli.ide.SikuliIDE$10.hotkeyPressed(SikuliIDE.java:3008)
at 
org.sikuli.hotkey.HotkeyController$HotKeyListenerWrapper.onHotKey(HotkeyController.java:177)
at com.tulskiy.keymaster.common.Provider$HotKeyEvent.run(Provider.java:153)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ThreadDeath: java.lang.ThreadDeath 

[error] script [ C:\script\VGWRM10.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 

[error] script [ C:\script\VGWRM9.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 

[error] script [ C:\script\VGWRM10.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 

[error] script [ C:\script\VGWRM9.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 

[error] script [ C:\script\VGWRM10.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 

[error] script [ C:\script\VGWRM9.sikuli ] stopped with error at line 
--unknown--
[error] Error caused by: IOError: java.nio.channels.ClosedByInterruptException 


Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread Manfred Hampl
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Open => Needs information

Manfred Hampl requested more information:
Please provide more information.
When does this message occur, are there additional messages, etc.

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Answered => Open

gob is still having a problem:
ty sir!

runScript(xxx)
while True:
 runScript(yyy)
 runScript(zzz)

this code get
java.nio.channels.ClosedByInterruptException

and i have no idea about this IOError

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-25 Thread Manfred Hampl
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Status: Open => Answered

Manfred Hampl proposed the following answer:
To repeat forever you can use a construct like this:

runScript(xxx)
while True:
 runScript(yyy)
 runScript(zzz)

If you want the script to terminate at a certain condition, you can
extend it with

runScript(xxx)
while True:
 runScript(yyy)
 runScript(zzz)
 if termination_condition_is_True:
 break

This is simple python, to be found in the manuals, e.g.
https://docs.python.org/

-- 
You received this question notification because your team Sikuli Drivers
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 #684220]: runscript

2019-09-24 Thread gob
Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

Description changed to:
runScript(xxx)
runScript(yyy)
runScript(zzz)

When runScript(zzz) finished, i wanna return to runScript(yyy).
and keep loop runScript(yyy) and runScript(zzz).
How can i do this?

-- 
You received this question notification because your team Sikuli Drivers
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