Uopilot Script Commands · Direct
: Performs a left-click at the specified coordinates. If coordinates are omitted, it clicks the current cursor position. right [x y] : Performs a right-click. move [x y]
: A conditional check. If the pixel at X/Y matches the color, the next line executes. Example: if 500, 400 255 left 500, 400 end_if
The Mechanics of Automation: An Essay on UoPilot Scripting is a versatile automation tool, originally popularized within the community of Ultima Online but widely adapted for general macro-based tasks in various games and Windows environments
commands between clicks to ensure the UI has time to update. Coordinate Relative to Window uopilot script commands
: Pauses script execution. Time is usually in milliseconds (e.g., is 1 second). goto
The send command is the primary way to simulate a key press. It is followed by the key name and an optional delay in milliseconds, which pauses the script after sending the key.
// For this example, let's assume we check a pixel color instead // Check if pixel at health bar location is black (low health) if_not 100 200 0 // (If pixel at 100,200 is NOT black/healthy) // Heal Logic send F1 // Press F1 (Heal spell) wait 500 // Wait half a second send Target // Target self end_if : Performs a left-click at the specified coordinates
Example Uopilot script command:
// 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
repeat send F1 wait 1000 // Wait 1 second end_repeat move [x y] : A conditional check
MOVETO 500, 400 CLICK "R"
Help you for a task (e.g., auto-fishing, looting) Explain how to find the correct window handle for your game Provide a list of common color codes for your project Let me know which of these would be most useful! Share public link
Governor Phil Murphy • Lt. Governor Tahesha L. Way