Define

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 10: Line 10:
 
Naming the command, placing other commands in the define command and clicking OK creates the command under the Custom Commands tab.
 
Naming the command, placing other commands in the define command and clicking OK creates the command under the Custom Commands tab.
  
[[File:custom command.png]]
+
[[File:cust.jpg]]
  
  
Line 27: Line 27:
 
Running the script will run the commands in the defined command called "search for a keyword" as one command.
 
Running the script will run the commands in the defined command called "search for a keyword" as one command.
  
[[File:define.png]]
+
[[File:define.jpg]]
  
  
 
For more information on how to create a function, please see the [[Return]] command.
 
For more information on how to create a function, please see the [[Return]] command.

Revision as of 17:20, 17 September 2013

This command is a flow command. This command allows you to define a custom command or function that can be used in your bot.

Name: The name of the command or function being created (please avoid using function or commands names that already exist within UBot Studio as commands and functions.)

Command or Function: Select "Function" when creating a custom function. Select "Command" when creating a custom command.

Parameters: allows you to account for variables within your custom command or function.

Example

Naming the command, placing other commands in the define command and clicking OK creates the command under the Custom Commands tab.

Cust.jpg



define search for a keyword {
    navigate("google.com", "Wait")
    type text(<name="q">, "Stina Nordenstam", "Standard")
    click(<name="btnK">, "Left Click", "No")
}
search for a keyword()


Running the script will run the commands in the defined command called "search for a keyword" as one command.

Define.jpg


For more information on how to create a function, please see the Return command.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox