Jump to content
UBot Underground

How to display a status message with a stat monitor in html panel?


Recommended Posts

Hi,

 

I would like to use a stat monitor in my html panel to show

the 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

Link to post
Share on other sites

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")
  • Like 1
Link to post
Share on other sites

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 built

doesn'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 them

selves, or copy the pasted text into all boxes simultaneously.

 

I take it out, and all is back to normal.

 

Got me stumped!

 

Andy

Link to post
Share on other sites

Hi,

 

I really need it to be either next to that button, or

underneath it.

 

if I put it at the end of my ui html, will that not be

out of place?

 

Using my code from above could you show me

what you mean please.

 

Thanks,

Andy

Link to post
Share on other sites

I managed to create a sort of work around.

 

But I had to place the variable into a 'input' tag like

so:

 

<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

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