Page 1 of 1

PostPosted: Sat Dec 10, 2011 9:10 am
by Wrangler
If you need help with code, it is always very helpful to others if you post the code here. Then we can look at it to arrive at a solution.

PostPosted: Sat Dec 10, 2011 2:12 pm
by chromebandit
Hi there, i think may HPWAutoit can help you out

http://www.hpwsoft.de/

Regards

PostPosted: Sat Dec 10, 2011 4:50 pm
by HPW
Hello,

I do not think that Autoit will help here.
At least you will have a relativ long running code in your page enter code section to get into such a need.
And I am not sure if neobook will react on a button click when the page enter code.
If the button work, it could set up a stop-flag, which get read in your long runing page enter code to break out the code.

PostPosted: Tue Dec 13, 2011 11:27 am
by Neosoft Support
It depends on how your page enter script is structured, but you can check the contents of a variable periodically and break out of the script if needed. For example:

SetVar "[AllStop]" "False"
.code
.code
.code
If "[AllStop]" "=" "True"
Return
EndIf
.code
.code
.code

Then in your stop button do this:

SetVar "[AllStop]" "True"

PostPosted: Thu Dec 15, 2011 11:29 am
by Neosoft Support
Can you post a copy of your script? There may be a better option, but without seeing what your script does it's difficult to make specific recommendations.

PostPosted: Thu Dec 15, 2011 12:24 pm
by Wrangler
Not sure without seeing what you've coded, but you could try putting:

If "[cancel_var]" "=" "yes"
GoToPage "Cancelled"
GoToLine "1000"
setvar "[cancel_var]" "no"
EndIf

in a timer to check the status of [cancel_var] every few seconds. Add reset the var to "no" after GoToLine "1000".