UI open file

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 1: Line 1:
This command is a [[UI Commands|UI Command]]. The command creates an open file field on the UI panel tied to a specific variable. This command will create a file browsing button on the UI of your bot. Whatever file is retrieved with the browse button will be placed wherever the corresponding variable goes. So if you insert the variable into a type text command for a filed, your file path will go into that field.
+
This command is a [[UI Commands|UI Command]]. The command creates an open file field on the UI panel tied to a specific variable. This command will create a file browsing button on the UI of your bot.  
 +
 
 +
Whatever file is retrieved with the browse button will be placed wherever the corresponding variable goes.  
 +
 
 +
If you insert the variable into a type text command for a filed, your file path will go into that field.
  
 
== Example ==
 
== Example ==

Revision as of 15:27, 14 April 2013

This command is a UI Command. The command creates an open file field on the UI panel tied to a specific variable. This command will create a file browsing button on the UI of your bot.

Whatever file is retrieved with the browse button will be placed wherever the corresponding variable goes.

If you insert the variable into a type text command for a filed, your file path will go into that field.

Example


navigate("http://ubotstudio.com/playground/simple-form", "Wait")
ui open file("Browse for your file here:", #my file)
type text(<username field>, #my file, "Standard")

Running the script after browsing for a file navigates to the webpage, sets the variable for the UI open file command, and fills the field with the file path chosen on the interface.

File:Uiopenfile.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox