Page 1 of 1

Break vbs script

PostPosted: Mon Jul 19, 2010 9:01 am
by sombra
Somebody know a way for stop a vbs called from a neobook action?

PostPosted: Mon Jul 19, 2010 10:38 am
by Gaev

You might try and design your vbs so that it periodically (e.g. inside a loop) checks a NeoBook Variable ... and if it is a specified value (e.g. "Stop Now") ... the script stops itself.

PostPosted: Mon Jul 19, 2010 11:17 am
by sombra
Hello Gaev,

I think that I tested it time ago...
Just now i have followed your tip and I have tested it with this example.
but unfortunately while a vbs is running from neobook, the the input for mouse seems to be suspended (I can not press the button for stop script)

PostPosted: Mon Jul 19, 2010 11:47 am
by Neosoft Support
If the VBScript is running in a loop like that it's probably not giving NeoBook the chance to check for mouse or keyboard events. You might be able to use the VBScript "window.setTimeout" function for your loop instead.