UI stat monitor
Line 35: | Line 35: | ||
− | Each label comes with | + | Each label comes with an assigned variable. The variable being changed is the variable Label1. |
+ | |||
+ | [[File:uilabel0.gif]] | ||
+ | |||
<pre> | <pre> | ||
set(#Label1, 4444, "Global") | set(#Label1, 4444, "Global") | ||
</pre> | </pre> | ||
+ | |||
Drag in a set command, select the variable Label1, and set the new value for the variable. | Drag in a set command, select the variable Label1, and set the new value for the variable. | ||
+ | |||
[[File:uilabel1.gif]] | [[File:uilabel1.gif]] | ||
+ | |||
Notice that the new value is displayed on the UI after running the set command. | Notice that the new value is displayed on the UI after running the set command. |
Revision as of 20:05, 5 November 2013
This command is a UI Command. This command will display the value of any variable you insert into it on the UI area above the browser.
For example, you can set a variable to a scrape attribute command, and then insert the variable into the UI stat monitor command.
Whatever gets scraped will be displayed in the UI area above the browser. Simply drag the command into the scripting area, give the display a label, and insert the variable for the item you are trying to display.
Label: refers to the label for the value being tracked on the interface.
Content to Track: refers to the variable being tracked on the interface.
Example
set(#hello, "Hello!", "Global") ui stat monitor("Greeting:", #hello)
Running the script displays the value of the variable on the UI of the bot.
Additional Information
The UI stat monitor cannot be used in a UI created with the UI editor.
Thankfully, the UI Editor comes with Label, and the Label allow you to display incrementing or decrementing variables on the UI, as well as displaying list totals and scraped values.
In this example, two labels are created. One to label the label that a value will be set to, and the other that will be changed in the set command.
Each label comes with an assigned variable. The variable being changed is the variable Label1.
set(#Label1, 4444, "Global")
Drag in a set command, select the variable Label1, and set the new value for the variable.
Notice that the new value is displayed on the UI after running the set command.