Jump to content
UBot Underground

Ui Button text. Cant it change after being clicked?


Recommended Posts

Hello I am trying to change a ui buttons label from "Start Search" to "Pause Search" when someone clicks the Start Search Button.  Is this possible?  I am using the Standard Version so I dont have access to the Html ui Builder at the moment.  Thanks. :)   Any help is greatly appreciated.

Link to post
Share on other sites

Standard does have onload unfortunately unless already included in the bot. I am using "ui Stat Monitor Theme Builder" and it use that. I thank you for your help. Im going to see if I can make this work now.  I want to make it go to "Continue" if Pause is clicked after the Start Search and so on.  Just want to have some login for the button so the user knows what they can do to start, pause, and stop the script. Again. Thanks. :)

Link to post
Share on other sites

Try this: http://www.ubotstudio.com/forum/public/style_images/master/attachicon.gifchange button label.ubot

 

I would have put the initial set command in an onload command but I'm not sure if you have onload with the standard version.

 

Cheers.

 

Hi, I hope you don't mind me jumping in, but here is a code that I found in the

forum sometime back that stander users can use for the onload command.

ui stat monitor("<script type=\"text/javascript\">
    window.setTimeout(function() \{ ubot.runScript(\'definesub()\') \}, 500)
</script>", "")
define definesub {
    navigate("http://autobotsolutions.com/", "Wait")
    change attribute(<name="q">, "value", "Test")
}
Link to post
Share on other sites

The UI Stat monitor allows for multiple button styles :) , and not just the default one. Set one button in a position when not running, set another similar button with the same variable in the same position with a different label when running.

 

Hope it helps :)

Link to post
Share on other sites

Hey Edward wait, I am lost what exactly are you explaining. I mean where do I do all that at inside of ui Stat Monitor.  You mentioned "Set one button in a position when not running, set another similar button with the same variable in the same position with a different label when running." SO I what.....

Link to post
Share on other sites

Hey Edward wait, I am lost what exactly are you explaining. I mean where do I do all that at inside of ui Stat Monitor.  You mentioned "Set one button in a position when not running, set another similar button with the same variable in the same position with a different label when running." SO I what.....

It can go something like this

 

http://www.filedropper.com/buttonpause

 

You would need to set a loop while in there somewhere but this is basically what im getting at.

Link to post
Share on other sites

Hey Edward,

 

I have another question. I got the buttons to work with the ui Stat monitor builder.  My question is: How do I get the button to load in the panel without having to first click the Run at the top of the compiled ubot.  Seems to only show up after the run button is clicked.  Is there a way to say"Pre-load it"?

Link to post
Share on other sites

Hi, there is an onload script in the bot

 

<script type="text/javascript">
    window.setTimeout(function() { ubot.runScript('onloadscript()') }, 500)
</script>

 

It should load the variables once opened

 

Is that not working for you?

Link to post
Share on other sites

Hey Edward,

 

I figured that out actually. I only have one more problem.  Once I got that to work the buttons no longer line up due to it not actually being a button, but a button inside a define.  Can I PM you the bot so you can take a look at why it isnt working for me?

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...