UI drop down

From UBot Studio
Revision as of 22:22, 30 December 2012 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This command is a UI Command. The command creates a drop down menu on the UI panel tied to a specific variable.

Example

load html("
<html>
<body>

<form action=\"\">
<select name=\"Months\">
<option value=\"january\">January</option>
<option value=\"february\">February</option>
<option value=\"march\">March</option>
<option value=\"april\">April</option>
</select>
</form>

</body>
</html>

")
ui drop down("Select a Month:", "january,february,march,april", #months)
change attribute(<name="Months">, "value", #months)

Placing the variable for the UI drop down command into the change attribute command changes the value of the drop down in the main browser to whatever value the UI on the interface is set to.

File:Uidropdown.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox