: Jumps directly to a specific part of the script marked by . 3. Screen Analysis and Logic Commands
// Sector 7 Excavation Script :start findcolor 450 300 850 600 (255) %ore 2 // Look for the red-tinted hematite if %ore > 0 move %ore[1][1] %ore[1][2] kleft %ore[1][1] %ore[1][2] // Command the plasma drill to strike wait 2s else msg Ore depleted. Moving to next vein. goto scan_next end_if goto start Use code with caution. Copied to clipboard
Performs a standard left-click at the specified X and Y coordinates. Example: click 500 400
: If you aren't sure of the coordinates, use the "Record" button in the UOPilot interface to capture your manual movements. Add Delays
: Types out an entire string of text. This is often used for automated chat messages. uopilot script commands
// Find color 255 (Green) in a specific area set $a findcolor (100, 100 500, 500 1 1 255 %arr 2) if $a > 0 left %arr[1][1], %arr[1][2] wait 1000 end_if Use code with caution. 5. Tips for UoPilot Success : Use // to add comments.
| Command | Syntax | Description | |---------|--------|-------------| | Send | Send text | Types text | | Key | Key A | Sends a single key press | | KeyDown / KeyUp | KeyDown Ctrl | Press/hold key | | WaitKey | WaitKey VK_F1 | Waits for a key to be pressed |
If there are 2 or more scripts you can set up variable in parallel script by using command set . e.g. set #i.3 5 // set variable # Google Groups Uopilot Script - Google Groups
| Command | Native Speed | Lua Speed | Notes | |---------|-------------|-----------|-------| | findimage | Baseline | Up to ~300,000x faster | Massive improvement in Lua | | send | Fast | Same | Keyboard emulation similar | | if color check | Moderate | Faster | Conditional evaluation quicker in Lua | | Loop operations | Slower | Much faster | Lua's JIT compilation helps | : Jumps directly to a specific part of the script marked by
If you are trying to automate a specific game, I can help you structure the script commands if you tell me what the goal of your script is. Share public link
wait 15000 // Wait 15 seconds wait 5s // Wait 5 seconds wait 1m // Wait 1 minute wait 1h // Wait 1 hour
Without proper timing, scripts will run too fast, causing clicks to miss or applications to crash.
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 Moving to next vein
: Performs a standard left mouse click at the designated X and Y coordinates. Example: left 450 300
| Command | Syntax | Description | |---------|--------|-------------| | RUN | RUN "program.exe" | Launches an executable. | | RUNWAIT | RUNWAIT "program.exe" | Launches and waits for it to close. | | FILEWRITE | FILEWRITE "path.txt", $data | Writes text to a file. | | FILEREAD | FILEREAD $Var, "path.txt" | Reads file content into a variable. | | CLIPBOARD | CLIPBOARD $Var | Copies text to or from clipboard (depending on context). | | BEEP | BEEP | Makes a sound. Good for alerts. |
Conditions: Supports mathematical operators ( < , > , <= , >= , = , <> ) and color checks.
: Stops the script execution immediately and closes the process run. 5. Conditional Logic and Screen Pixel Detection
These commands are the bread and butter of UoPilot, allowing the script to interact with the UI.