AutomationNinja 194 Posted January 31, 2013 Report Share Posted January 31, 2013 OK I thought you experienced coders would get a kick out of this. I noticed I had two defined a stop command twice. So I got rid of this one: define stop { stop script}But then my button wouldn't actually stop the script So I have one stop on top and the ui html and the other stop (this was all an accident by the way) define stop { stop script}<p><center><button class=\"cssbutton\" onclick=\"ubot.runScript(\'Go()\')\">Start</button> || <button class=\"cssbutton\" onclick=\"ubot.runScript(\'stop()\')\">Stop</button></center></p><script type=\"text/javascript\"> window.onload = ubot.runScript(\'definesub()\')</script>define stop { set(#stop, 1, "Global")}define stopcheck { if($comparison(#stop, "=", 1)) { then { stop script } else { } }} Obviously I have to fix something here. I was putting the stopcheck through out the script and it was working, but I had some weirdness and then found this. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.