UI html window

From UBot Studio
Jump to: navigation, search

This command is a UI Command.

This command creates a blank panel in the ui area in which you can use html to design your own UI in a window that can be accessed through the settings menu on the bot or UBot Studio.

Label: The name of the window as you want it to appear in the settings menu

The command is used for the creation of custom fields, checkboxes, drop downs and other html elements.


Example

Custom created fields are assigned variables that are used to integrate your UI with the rest of your script in UBot Studio.


navigate("http://ubotstudio.com/playground/simple-form", "Wait")
wait(3)
ui html window("My Window", "<html>
<body style=\"background-color:#00CCFF\"><h1>My Window</h1>
<br>Name:<input type=\"text\" variable=\"#myvar\" fillwith=\"value\"></p> <br>Address: <input type=\"text\" variable=\"#myvar0\" fillwith=\"value\"></p><br>City: <input type=\"text\" variable=\"#myvar1\" fillwith=\"value\"></p><br>E-mail: <input type=\"text\" variable=\"#myvar2\" fillwith=\"value\"></p>", 200, 400)
type text(<username field>, #myvar, "Standard")
type text(<password field>, #myvar0, "Standard")



The values in the fields in the UI html window are retained even after the html window is closed.

Running the script inserts the values of the checkbox and the text box into the specified fields with the type text command.


Kiki9.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox