Include
This command is a Flow Command. The include command allows the inclusion and running of defined commands from another .ubot file.
This command works with the Define Command.
Select a .ubot file to include: the browse button allows the insertion of the complete file path for the .ubot file containing defines that will be included.
Example
The file being included contains the following define command:
define search for a keyword { navigate("google.com","Wait") type text(<name="q">,"Productivity Apps","Standard") click(<name="btnK">,"Left Click","No") }
Once the define command is ready, the file is saved as Productivity Search.ubot and closed.
A new instance of UBot Studio is opened and the include command dragged in from under the Flow Commands in the toolbox.
Hitting the browse button allows us to search our files for the .ubot file with the define commands we want included.
include("C:\\Users\\Documents\\Productivity Search.ubot")
Once a file path to the .ubot file is added, clicking ok on the include command adds a category titled with the name of the bot.
All the defined commands in the Productivity Search.ubot file are then listed underneath as ready to run commands.
To run the command, it is dragged into the scripting area.
include("C:\\Users\\Documents\\Productivity Search.ubot") run command("Productivity Search","search for a keyword")
Clicking the button runs the command.