Loops allow you to repeat a set of actions indefinitely or a set number of times.
Simulating keyboard input is the backbone of most macros. UOPilot offers multiple ways to send keystrokes depending on how the target window processes inputs.
The UoPilot scripting language is line-based. Each line typically contains one command followed by its parameters. Anything following // is ignored by the program. Variable Prefixes: # : Numeric variables (e.g., #hp , #count ). $ : String/line variables (e.g., $name ). % : Array identifiers (e.g., %map ). Essential Command Categories 1. Mouse & Keyboard Control uopilot script commands
: Executes commands only if the color at the coordinate does not match. Advanced Color and Logic Operators You can combine conditions using logical operators: and : Both conditions must be true. or : At least one condition must be true. xor : Only one condition must be true, but not both. if 100 150 16711680 and 200 250 65280 left 100 150 end_if Use code with caution. 5. Loops and Repetitive Logic
set linedelay 0 set #counter 0
right_down : Presses and holds the right mouse button.
Mouse movements and clicks form the backbone of most desktop automation scripts. UoPilot offers precise control over cursor behavior. Loops allow you to repeat a set of
UoPilot supports , each attached to different windows:
: Moves the cursor to specific coordinates without clicking. double_right : Simulates right-click actions. msg The UoPilot scripting language is line-based
This approach allows you to detect color variations (e.g., a health bar changing from red to green).
: Moves the mouse cursor to the specified coordinates without clicking.