-
Notifications
You must be signed in to change notification settings - Fork 5
Macros
Sean Proctor edited this page Jan 24, 2026
·
3 revisions
Macros are a way to have a certain set of key combinations (normal key, plus modifiers) modify the text entry.
Special characters:
- \x clears the entry box and stores the cleared text
- \r submits what is currently in the entry box
- \p delays the macro execution by 1 second
- @ moves the cursor to its location
- ? inserts the stored text from \x
Variables can be inserted with %s. Like "attack %target%"
There are a few special commands that can be used by putting them in {}s. Like "{copy}"
Commands:
- BufferEnd - scroll focused window to end of buffer
- BufferStart - scroll focused window to start of buffer
- ClearToEnd - clear text after cursor in entry
- ClearToStart - clear text before cursor in entry
- DeleteLastWord - deletes the word before the cursor in the entry
- LineDown - scroll focused window to down one line
- LineUp - scroll focused window to up one line
- MoveCursorToEnd - move cursor to the end of the entry
- MoveCursorToStart - move cursor to the start of the entry
- NextHistory - Change the value of the entry box to the next entry in the history stack
- PageDown - scrolls the focused window down one page
- PageUp - scrolls the focused window up one page
- PrevHistory - Change the value of the entry box to the previous entry in the history stack
- stopscript - Stops any running scripts
- pausescript - Pauses or resumes any running scripts
- repeatlast - Send the last command again
- returnorrepeatlast - Repeats last command if the entry is empty, otherwise submits the entry
- repeatsecondtolast - repeats the command 2 back in the history stack