Source language: Translate to:

Break vbs script

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

Break vbs script

Postby sombra » Mon Jul 19, 2010 9:01 am

Somebody know a way for stop a vbs called from a neobook action?
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain

Postby Gaev » Mon Jul 19, 2010 10:38 am

sombra:

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.
User avatar
Gaev
 
Posts: 3738
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby sombra » Mon Jul 19, 2010 11:17 am

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. http://www.breto.net/temp/neobook/test-stop-vbs.zip
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)
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain

Postby Neosoft Support » Mon Jul 19, 2010 11:47 am

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.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBook Functions - VBScript & JavaScript

Who is online

Users browsing this forum: No registered users and 0 guests

cron