ToNic Innovation 0 Posted June 13, 2012 Report Share Posted June 13, 2012 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> Quote Link to post Share on other sites
celavey 1 Posted June 14, 2012 Report Share Posted June 14, 2012 Once you started the progress bar, it your bot won't start to function? Quote Link to post Share on other sites
peak_positions 2 Posted June 14, 2012 Report Share Posted June 14, 2012 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. 1 Quote Link to post Share on other sites
ToNic Innovation 0 Posted June 14, 2012 Author Report Share Posted June 14, 2012 Thanks! That worked! 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.