Jump to content
UBot Underground

Multifunction button in ui htmel panel


Recommended Posts

Have a bot with a button in ui html panel. I have coded where the button will start my bot but can I make the same button also start a progress bar? If so what would that code look like. Right now I am using 2 separate buttons.

 

</p><p style="text-align: center; "><button onclick="ubot.runScript('StartButton()');ubot.runScript('Progress()')">Build My Overlay</button>

 

<p style="text-align: center; "><button onclick="ubot.runScript('Progress()')">Click to see your progress</button>

Link to post
Share on other sites

You can call both the function in "onclick". You can close the progressbar by using javascript.

 

 

<button onclick="ubot.runScript('StartButton()'); ubot.runScript('Progress()')">Build My Overlay</button>

 

This code itself enough to perform your operation.

  • Like 1
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...