Mouse commands interact with coordinates on your screen. You can grab coordinates by hovering your mouse over a target in UoPilot and pressing Ctrl + A .
To make a script "smart," you use logic commands to react to changes on the screen.
UoPilot scripts are executed sequentially from top to bottom. The scripting language is not strictly case-sensitive, but keeping commands uppercase improves readability. Key Syntax Rules uopilot script commands
| Command | Syntax | Description | |---------|--------|-------------| | Goto | Goto Label | Jumps to a label | | Label | Label Name | Defines a jump target | | If / Else | If Var = Value | Conditional execution | | Loop / EndLoop | Loop 5 | Repeats block N times | | Wait | Wait 1000 | Pauses for milliseconds |
: Searches for a specific color within a defined box. Example: findcolor (100, 100, 500, 500) 1 1 65535 2 2 Mouse commands interact with coordinates on your screen
Searches a defined rectangular area for a specific pixel color. This is fundamental for creating conditional logic based on visual cues:
Sends a specific keystroke to the active window. You can send letters, numbers, or special keys wrapped in modifiers. Example: send F5 (Refreshes a page) or send ex (Types "ex") UoPilot scripts are executed sequentially from top to bottom
: Assigns text to a string variable (variables start with $ ). set %var [index] : Assigns a value to an array. Example Script: Simple Auto-Clicker
UoPilot runs on Windows XP through Windows 10, with varying levels of compatibility reported for newer operating systems. Running the program as an administrator can resolve many issues.
// Move to resource and click move_mouse 500, 300 wait 100 left_click 500, 300 wait 5000 // Wait for gathering to finish Use code with caution. 3. Controlling Script Flow: Wait and Loop Commands
This script moves the mouse to a specific location, simulates a mouse click, types a string, activates a window, and takes a screenshot. You can use Uopilot's built-in editor to create and run your own scripts.