| Command | Description | Example |
|---------|-------------|---------|
| set var,value | Assign value to variable | set x,10 |
| add var,value | Add to variable | add x,5 |
| sub var,value | Subtract | sub x,3 |
| mul var,value | Multiply | mul x,2 |
| div var,value | Divide | div x,4 |
| inc var | Increment by 1 | inc counter |
| dec var | Decrement by 1 | dec counter |
System variables:
Mouse commands are the heart of most UOPilot automations.
| Command | Syntax | Description |
|---------|--------|-------------|
| MOVETO | MOVETO X, Y | Moves cursor to absolute screen coordinates. |
| MOVEM | MOVEM Xoff, Yoff | Moves cursor relative to current position. |
| CLICK | CLICK ["L" or "R" or "M"] | Clicks left (default), right, or middle button. |
| DCLICK | DCLICK ["L" or "R"] | Double-clicks. |
| DOWN | DOWN ["L" or "R"] | Presses and holds mouse button. |
| UP | UP ["L" or "R"] | Releases mouse button. |
| DRAG | DRAG X, Y | Drags from current position to X,Y (requires DOWN first). |
| WH | WH +/- steps | Scrolls wheel up (+) or down (-). |
Example: Right-click at position 500,400.
MOVETO 500, 400
CLICK "R"
Drag-and-drop sequence:
MOVETO 100, 100
DOWN "L"
MOVETO 500, 500
UP "L"
uoPilot is a scripting/automation tool for Ultima Online that provides a command language to control characters (movement, targeting, item handling, macros, UI interactions). (Assuming you mean the widely used uoPilot; if you meant a different project, say so.)
By default, MOVETO uses absolute screen coordinates. Use MOVEM for relative movement.
| Command | Description |
|---------|-------------|
| winactivate title | Focus window by title |
| winwait title | Wait for window to exist |
| winclose title | Close window |
| winset title | Set as target for relative coords |
| fullscreen | Capture entire screen (for color checks) |
Relative coordinates: After winset, use winx / winy to offset mouse moves inside window.