andymurray 2 Posted May 20, 2013 Report Share Posted May 20, 2013 Hi, I would like to use a stat monitor in my html panel to showthe status of where the software is upto. So for example... When it starts processing the first step it will display: Step 1 Processing... Then when it completes 'Step 1', it displays: Step 1 Complete! And so on for the remainder until finally it says finished. Thanks,Andy Quote Link to post Share on other sites
UBotDev 276 Posted May 20, 2013 Report Share Posted May 20, 2013 Use the code bellow: <div fillwith="innertext" variable="#STATUS"> Then just set variable #STATUS to the status you want, like in the example bellow: ui html panel("<div fillwith=\"innertext\" variable=\"#STATUS\">", 200) set(#STATUS, "Step 1 Processing...", "Global") wait(3) set(#STATUS, "Step 1 Complete!", "Global") 1 Quote Link to post Share on other sites
andymurray 2 Posted May 20, 2013 Author Report Share Posted May 20, 2013 Cheers mate! Will implement that now. Andy Quote Link to post Share on other sites
andymurray 2 Posted May 20, 2013 Author Report Share Posted May 20, 2013 Hi, Is there any other way to use a stat than with a <div>? The reason I ask is because the css based ui I've builtdoesn't seem to like it. Take a look at this code: <div id="main"><div id="content"><br><button onclick="ubot.runScript('Go()')">Build Website</button><div fillwith=\"innertext\" variable=\"#Status\"></div></div> Now when I fill in my text boxes, they freak out and delete themselves, or copy the pasted text into all boxes simultaneously. I take it out, and all is back to normal. Got me stumped! Andy Quote Link to post Share on other sites
nuc63 27 Posted May 20, 2013 Report Share Posted May 20, 2013 Just insert the code at the end of your ui HTML. Don't div it all just that line I usually use tables for rest Quote Link to post Share on other sites
andymurray 2 Posted May 20, 2013 Author Report Share Posted May 20, 2013 Hi, I really need it to be either next to that button, orunderneath it. if I put it at the end of my ui html, will that not beout of place? Using my code from above could you show mewhat you mean please. Thanks,Andy Quote Link to post Share on other sites
andymurray 2 Posted May 21, 2013 Author Report Share Posted May 21, 2013 I managed to create a sort of work around. But I had to place the variable into a 'input' tag likeso: <div id=\"main\"> <div id=\"content\"> <br> <table> <tr> <td>Blah, Blah, Blah...</td> <td><button onclick=\"ubot.runScript(\'Go()\')\">Blah, Blah, Blah..</button></td> </tr> <tr> <td>Blah, Blah, Blah..</td> <td><input variable=\"#Status\" fillwith=\"value\" style=\"250px\"></td> </tr> <tr> </table> If I take the 'input' tag out, the variable disappears from the UI. Any way to make the text block invisible? Andy Quote Link to post Share on other sites
andymurray 2 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Got it. 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.