UI drop down

From UBot Studio
Revision as of 15:33, 14 April 2013 by LillyT (Talk | contribs)

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