UI html window

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "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 accesse...")
 
(Example)
Line 12: Line 12:
  
 
<pre>
 
<pre>
 +
navigate("http://ubotstudio.com/playground/simple-form", "Wait")
 +
wait(3)
 
ui html window("My Window", "<html>
 
ui html window("My Window", "<html>
 
<body style=\"background-color:#00CCFF\"><h1>My Window</h1>
 
<body style=\"background-color:#00CCFF\"><h1>My Window</h1>
Line 17: Line 19:
 
type text(<username field>, #myvar, "Standard")
 
type text(<username field>, #myvar, "Standard")
 
type text(<password field>, #myvar0, "Standard")
 
type text(<password field>, #myvar0, "Standard")
 +
  
 
</pre>
 
</pre>

Revision as of 14:22, 11 April 2013

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.

File:Uihtmlwindow.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox