Repeats a block of code as long as a condition remains true.
| Command | Syntax | Description | |---------|--------|-------------| | Sleep | Sleep ms | Pauses script (milliseconds). | | Wait | Wait ms | Same as Sleep. | | Goto | Goto label | Jumps to label (e.g., :start ). | | Call | Call sub_name | Calls subroutine. | | Return | Return | Returns from subroutine. | | If | If condition | Conditional branch (see variables below). |
set %screenShot GetImage(0 0 1920 1080)
: Assigns text to a string variable (variables start with $ ). set %var [index] : Assigns a value to an array. Example Script: Simple Auto-Clicker
UoPilot scripts execute sequentially from top to bottom. The engine interacts with your operating system by simulating keyboard strokes, mouse clicks, and analyzing screen pixels. uopilot script commands
Now, let’s explore the core commands.
Variables hold data, such as coordinates or counters. # indicates a number variable (e.g., #count = 0 ). % indicates an array (e.g., %coords ). Setting Variables: Use the set command to assign values. Example: set #targetX 100 2. Essential Mouse and Keyboard Commands
Loop 5 Type "Hello, World!" Wait 1000 EndLoop
// Anti-AFK Keep-Alive Macro :main move 500, 500 wait 500 move 510, 500 wait 500 send Space wait 30000 // Wait 30 seconds before repeating goto main Use code with caution. Example B: Smart Automated Health Potion Drinker Repeats a block of code as long as a condition remains true
Let counter = 0 :loop Inc counter Send "Iteration SPACE" Send counter Send "ENTER" If Cmp counter, 10 Goto end EndIf Sleep 1000 Goto loop :end
| Command | Syntax | Description | |---------|--------|-------------| | IF | IF condition | Conditional block. Closed with ENDIF . | | ELSE | ELSE | Alternate branch. | | LOOP | LOOP label | Infinite loop until BREAK . Use with WAIT . | | BREAK | BREAK | Exits current loop. | | GOTO | GOTO label | Jumps to a line label (e.g., :START ). | | CALL | CALL SubName | Calls a subroutine (defined with :SubName ). | | RETURN | RETURN | Returns from subroutine. | | DELAY / WAIT | WAIT Milliseconds | Pauses execution. | | SET | SET VarName, Value | Assigns a variable. | | VARADD | VARADD VarName, Amount | Adds to a numeric variable. |
Pauses script execution for a specified number of milliseconds. wait 1000 // Pauses the script for exactly 1 second Use code with caution. while Loops
: Executes a block of code if the condition is true. | | Goto | Goto label | Jumps to label (e
What sets UoPilot apart from many other automation tools is its ability to perform tasks without reading or altering a game client’s memory. Instead, it operates purely by sending keystrokes and mouse commands—just as a human user would. This approach gives UoPilot a lower detection risk in many online games.
UOPilot scripts are interpreted line-by-line. The language is generally case-insensitive and utilizes simple syntax for variables and flow control. Variables and Assignment ( set )
: Drags an object from the first set of coordinates to the second. 2. Keyboard Commands Used to simulate typing and hotkey combinations.