SuperMacro - Available Commands#
Keyboard commands#
| Keyboard Key | Macro command |
|---|---|
| A - Z | {{VK_XXXX}} (XXXX = the letter - e.g. VK_A / VK_B ...) |
| 0 - 9 | {{VK_XXXX}} (XXXX = the number - e.g. VK_0 / VK_1 ...) |
Any of the following characters: ;/\`[\]':?~{|}\" |
Exact command changes between keyboard layouts: Try the following macros to figure out the correct command: {{oem_1}} {{oem_2}} {{oem_3}} {{oem_4}} {{oem_5}} {{oem_6}} {{oem_7}} {{oem_8}} {{shift}{oem_1}} {{shift}{oem_2}} {{shift}{oem_3}} {{shift}{oem_4}} {{shift}{oem_5}} {{shift}{oem_6}} {{shift}{oem_7}} {{shift}{oem_8}} |
| Num 0 | {{NUMPAD0}} |
| Num 1 | {{NUMPAD1}} |
| Num 2 | {{NUMPAD2}} |
| Num 3 | {{NUMPAD3}} |
| Num 4 | {{NUMPAD4}} |
| Num 5 | {{NUMPAD5}} |
| Num 6 | {{NUMPAD6}} |
| Num 7 | {{NUMPAD7}} |
| Num 8 | {{NUMPAD8}} |
| Num 9 | {{NUMPAD9}} |
| Num * | {{MULTIPLY}} |
| Num + | {{ADD}} |
| Num - | {{SUBTRACT}} |
| Num . | {{DECIMAL}} |
| Num / | {{DIVIDE}} |
| Backspace | {{BACK}} |
| Tab | {{TAB}} |
| Clear | {{CLEAR}} |
| Enter | {{RETURN}} or {{ENTER}} |
| Shift | {{SHIFT}} |
| Left Shift | {{LSHIFT}} |
| Right Shift | {{RSHIFT}} |
| Ctrl | {{CONTROL}} or {{CTRL}} |
| Left Ctrl | {{LCONTROL}} or {{LCTRL}} |
| Right Ctrl | {{RCONTROL}} or {{RCTRL}} |
| Alt | {{ALT}} or {{MENU}} |
| Left Alt | {{LALT}} or {{LMENU}} |
| Right Alt | {{RALT}} or {{RMENU}} |
| Pause / Break | {{BREAK}} |
| Caps Lock | {{CAPITAL}} |
| Esc | {{ESCAPE}} |
| Space | {{SPACE}} |
| Page Up | {{PAGEUP}} or {{PGUP}} or {{PRIOR}} |
| Num Page Up | {{NUMPAD_PAGEUP}} |
| Page Down | {{PAGEDOWN}} or {{PGDN}} or {{NEXT}} |
| Num Page Down | {{NUMPAD_PAGEDOWN}} |
| Home | {{HOME}} |
| Num Home | {{NUMPAD_HOME}} |
| End | {{END}} |
| Num End | {{NUMPAD_END}} |
| Up | {{UP}} |
| ↑ Num Up | {{NUMPAD_UP}} |
| Left | {{LEFT}} |
| ← Num Left | {{NUMPAD_LEFT}} |
| Right | {{RIGHT}} |
| → Num Right | {{NUMPAD_RIGHT}} |
| Down | {{DOWN}} |
| ↓ Num Down | {{NUMPAD_DOWN}} |
| Select | {{SELECT}} |
| Print Screen | {{SNAPSHOT}} |
| {{PRINT}} | |
| Execute | {{EXECUTE}} |
| Ins | {{INSERT}} |
| ⎀ Num Ins | {{NUMPAD_INSERT}} |
| Del | {{DELETE}} |
| ⌦ Num Del | {{NUMPAD_DEL}} |
| Help | {{HELP}} |
| Left Win | {{LWIN}} or {{WIN}} or {{WINDOWS}} |
| Right Win | {{RWIN}} |
| F1 - F24 | {{fXX}} (XX = the number - e.g. f1 / f24 ...) |
| + / = | {{OEM_PLUS}} / {{SHIFT}{OEM_PLUS}} |
| - / _ | {{OEM_MINUS}} / {{SHIFT}{OEM_MINUS}} |
| . / > | {{OEM_PERIOD}} / {{SHIFT}{OEM_PERIOD}} |
| , / < | {{OEM_COMMA}} / {{SHIFT}{OEM_COMMA}} |
| Num Lock | {{NUMLOCK}} |
| Scroll Lock | {{SCROLL}} |
Mouse commands#
| Mouse Key | Macro Command |
|---|---|
| Mouse Left-Click | {{LBUTTON}} |
| Mouse Left Double-Click | {{MLEFTDBLCLICK}} |
| Mouse Left Button Down | {{MLEFTDOWN}} |
| Mouse Left Button Up | {{MLEFTUP}} |
| Mouse Right-Click | {{RBUTTON}} |
| Mouse Right Double-Click | {{MRIGHTDBLCLICK}} |
| Mouse Right Button Down | {{MRIGHTDOWN}} |
| Mouse Right Button Up | {{MRIGHTUP}} |
| Mouse Middle Click | {{MBUTTON}} |
| Mouse Middle Button Down | {{MMIDDLEDOWN}} |
| Mouse Middle Button Up | {{MMIDDLEUP}} |
| Mouse Button 4 Click | {{XBUTTON1}} |
| Mouse Button 5 Click | {{XBUTTON2}} |
| Mouse Scroll Wheel Up | {{MSCROLLUP}} Optional: Set the number of 'clicks' to scroll up: {{MSCROLLUP:10}} will scroll up 10 clicks |
| Mouse Scroll Wheel Down | {{MSCROLLDOWN}} Optional: Set the number of 'clicks' to scroll down: {{MSCROLLDOWN:3}} will scroll down 3 clicks |
| Mouse Horizontal Scroll Left | {{MSCROLLLEFT}} Optional: Set the number of 'clicks' to scroll left: {{MSCROLLLEFT:3}} will scroll left 3 clicks |
| Mouse Horizontal Scroll Right | {{MSCROLLRIGHT}} Optional: Set the number of 'clicks' to scroll right: {{MSCROLLRIGHT:3}} will scroll right 3 clicks |
| Mouse Move based on CURRENT position | {{MOUSEMOVE:X,Y}} (Move the cursor by X,Y from current position) |
| Mouse Move based on multi-screen resolutions | {{MOUSEXY:X,Y}} (Move the cursor to the X,Y position on the screen. 0,0 is the [top-left] of your primary monitor. Supports both positive and negative values. Use along with the Mouse Location action to easily find the right coordinates on your PCSupports variables too: {{MOUSEXY:$Var1,$Var2}} |
| Store current mouse position | {{MSAVEPOS}} stores the current mouse cursor position. The position is stored in variables: $MOUSE_X and $MOUSE_Y |
| Move mouse to previous stored position | {{MLOADPOS}} moves the mouse to the previous set position (when {MSAVEPOS} was called). |
| (DEPRECATED) Mouse Move based on ABSOLUTE position (DEPRECATED) | {{MOUSEPOS:X,Y}} (Move the cursor to the X,Y position on the screen. Values from 0,0 [top-left] to 65535,65535 [bottom-right]) |
Windows Commands#
| Action | Macro Command |
|---|---|
| Browser Back | {{BROWSER_BACK}} |
| Browser Forward | {{BROWSER_FORWARD}} |
| Browser Home | {{BROWSER_HOME}} |
| Browser Refresh | {{BROWSER_REFRESH}} |
| Browser Stop | {{BROWSER_STOP}} |
| Browser Search | {{BROWSER_SEARCH}} |
| Browser Favorites | {{BROWSER_FAVORITES}} |
| Next Track | {{MEDIA_NEXT_TRACK}} |
| Previous Track | {{MEDIA_PREV_TRACK}} |
| Play / Pause | {{MEDIA_PLAY_PAUSE}} |
| Stop | {{MEDIA_STOP}} |
| Volume Up | {{VOLUME_UP}} |
| Volume Down | {{VOLUME_DOWN}} |
| Mute | {{VOLUME_MUTE}} |
Advanced Commands#
| Action | Macro Command |
|---|---|
| {{//}} | Comments Support: Anything after the {{//}} sign will be ignored until end of line. Note: The "Don't treat "New Line" as Enter" setting must be DISABLED for this to work properly |
| PAUSE | {{PAUSE:XXXX}} (XXXX = length in milliseconds). Will pause execution of the rest of the SuperMacro for the time specified |
| 🆕 KeyPress | {{KeyPress:XXXX:YYYY:ZZZZ}} (XXXX = name of key, YYYY = number of repeats, ZZZZ = delay in ms between repeats). Example1: {{KeyPress:C:5:1000}} Simulates pressing 'C' 5 times, with 1 sec delay between presses Example2: {{KEYPRESS:$Var1:$Var2}} when Var1=down and Var2=5 will simulate pressing the Down key 5 times |
| KeyDown | {{KeyDown:XXXX}} (XXXX = name of key) example {{KeyDown:F1}} ). Simulates holding the key down on the keyboard. Note: Should be eventually accompanied by a KeyUp command |
| KeyUp | {{KeyUp:XXXX}} (XXXX = name of key) example {{KeyUp:SHIFT}} ) |
| MSavePos | {{MSAVEPOS}} stores the current mouse cursor position. The position is stored in variables: $MOUSE_X and $MOUSE_Y |
| MLoadPos | {{MLOADPOS}} moves the mouse to the previous set position (when {MSAVEPOS} was called). |