: Moves the mouse cursor to the specified coordinates.
UoPilot scripts are composed of commands that execute sequentially. They can handle variables, loops, conditional logic, and external input simulation. 1.1. Movement and Interaction (Mouse & Keyboard)
Comments are lines of text that the script ignores. They are vital for organizing your code and leaving notes for yourself. uopilot script commands
: Tells Uopilot to send all subsequent commands specifically to that window, allowing it to run in the background while you do other things. showwindow : Minimizes, maximizes, or restores a window. Best Practices for Uopilot Scripting
UOPilot uses dynamic variables – prefix with $ in most contexts (e.g., $myVar ). No explicit declaration required. : Moves the mouse cursor to the specified coordinates
Performs a at the specified coordinates.
The most fundamental commands are left and right mouse clicks at exact X and Y coordinates on your screen. : Tells Uopilot to send all subsequent commands
: UoPilot has a built-in tool to identify exact color codes for your findcolor commands.
Clicks and holds the left mouse button at X1, Y1 , moves to X2, Y2 , and releases it. Perfect for drag-and-drop actions or drawing. Example: drag 100 100 300 300 2. Keyboard Simulation Commands
repeat 5 send F1 500 wait 1s end_repeat // Performs the action 5 times
// Declare a string variable set $s test string