Jump to content
UBot Underground

Recommended Posts

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. :blink: I was putting the stopcheck through out the script and it was working, but I had some weirdness and then found this.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...