HotCorner Hotkeys
Assign up to 9 distinct actions per hotkey, dispatched based on which screen zone the cursor is in when pressed (4 corners, 4 edges, or elsewhere).
Author: webberlv
Assign actions to global hotkeys, with the action chosen by the cursor's
current screen zone when the hotkey is pressed. Each hotkey can have separate
actions for the four corners, four edges, and everywhere else.
Cursor zones
Zones are detected from the physical monitor edges, not the taskbar or work
area. A zone becomes active when the cursor is within 12 pixels of that
monitor edge.
When a hotkey is pressed, the mod first checks the exact zone under the cursor.
If nothing is configured there, it follows the fallback chain below until it
finds a configured action. If nothing matches, no action is run.
| Cursor zone |
Fallback order |
TOP_LEFT |
TOP_LEFT → TOP → LEFT → ELSEWHERE |
TOP_RIGHT |
TOP_RIGHT → TOP → RIGHT → ELSEWHERE |
BOTTOM_LEFT |
BOTTOM_LEFT → BOTTOM → LEFT → ELSEWHERE |
BOTTOM_RIGHT |
BOTTOM_RIGHT → BOTTOM → RIGHT → ELSEWHERE |
TOP |
TOP → ELSEWHERE |
BOTTOM |
BOTTOM → ELSEWHERE |
LEFT |
LEFT → ELSEWHERE |
RIGHT |
RIGHT → ELSEWHERE |
ELSEWHERE |
ELSEWHERE |
Supported actions
- Show desktop: Toggles desktop view using the taskbar's Show Desktop command.
- Ctrl+Alt+Tab: Opens the Ctrl+Alt+Tab task switcher.
- Task Manager: Opens Windows Task Manager.
- Mute system volume: Toggles mute on all active render audio devices.
- Taskbar auto-hide: Toggles the Windows taskbar auto-hide setting.
- Win+Tab: Opens Task View.
- Hide desktop icons: Toggles desktop icon visibility.
- Combine Taskbar buttons: Toggles taskbar button combine mode between configured states. Uses Additional Arguments.
- Toggle Taskbar alignment: Toggles taskbar alignment between left and center.
- Open Start menu: Sends the Windows key to open Start.
- Virtual key press: Sends one or more parsed virtual keys with
SendInput. Uses Additional Arguments.
- Open application, path or URL: Opens a target through
ShellExecuteEx. Uses Additional Arguments.
- Clipboard Run: Reads the current clipboard text, appends it to a configured alias or target string, and opens the result. Uses Additional Arguments.
- Open parsed title path in explorer, with fallback to exe: Tries to extract a file path from the foreground window title and select it in Explorer; if that fails, it selects the foreground process executable instead.
- Opacity Up (active window): Raises the active window's opacity through fixed levels. If the window is already layered and reaches the top step, the layered style is removed to restore full opacity.
- Opacity Down (active window): Lowers the active window's opacity through fixed levels. If the window is not layered yet, it becomes layered and starts at 226.
- Toggle Always On Top (active window): Toggles the active window between normal and topmost.
- Force Kill Active Window: Terminates the foreground window's process, except for the current
explorer.exe host process.
- Media Play/Pause: Sends the media play/pause key.
- Media Next Track: Sends the media next-track key.
- Media Previous Track: Sends the media previous-track key.
Hotkey format
Use this format:
Modifier+Modifier+Key
Rules:
- Use exactly one non-modifier key.
- Modifiers can appear in any order.
- Hotkey names are case-insensitive.
Supported modifiers:
Alt
Ctrl
Shift
Win
NoRepeat
Common key names:
- Letters:
A to Z
- Numbers:
0 to 9
- Function keys:
F1 to F24
- Navigation:
Home, End, PageUp, PageDown, Insert, Delete, Left, Right, Up, Down
- Common:
Enter, Tab, Space, Backspace, Escape or Esc, CapsLock, PrintScreen, Pause
- Numpad:
Numpad0 to Numpad9 or Num0 to Num9, plus NumLock, Add, Subtract, Multiply, Divide, Decimal
- Media:
VolumeMute, VolumeUp, VolumeDown, MediaPlayPause, MediaNext, MediaPrev, MediaStop
- Extra keys used mainly by Virtual key press:
LWin, RWin, LShift, RShift, LCtrl, RCtrl, LAlt, RAlt
- Some additional
VK_* names from Virtual-Key Codes
- Numeric virtual-key codes are also accepted, such as
0x70
Examples:
Ctrl+Alt+D
Ctrl+Shift+F1
Alt+Home
Win+Numpad1
NoRepeat+Ctrl+Z
Additional Arguments
Only these actions use Additional Arguments:
- Combine Taskbar buttons
- Virtual key press
- Open application, path or URL
- Clipboard Run
All other actions ignore this field.
Virtual key press
Use one or more semicolon-separated hotkey-style entries.
Each entry is parsed, then all parsed keys are flattened into one list and sent
together in a single SendInput batch. That means Ctrl+C;Alt+Tab does not
send Copy and then Alt+Tab as two separate shortcuts. It presses all parsed keys
together in one batch.
If any modifier key is still physically held when the action fires, sending is
deferred briefly until those modifier keys are released, with a timeout of about
500 ms.
Examples:
Ctrl+C
Alt+F4
Ctrl+Shift+Esc
VolumeMute
LWin+Tab
Open application, path or URL
This value is passed to ShellExecuteEx.
It can be:
- An executable
- A document, folder, or path
- A URL
- An executable plus arguments
The target is opened on the monitor where the cursor is currently located.
Examples:
notepad.exe
C:\Windows\System32\cmd.exe
"C:\Program Files\Everything\Everything.exe"
explorer.exe C:\
https://example.com
To request elevation, prefix the value with uac;:
uac;cmd.exe
uac;"C:\Tools\app.exe" --example
Clipboard Run
This action reads the current clipboard text. If the clipboard is empty, nothing
happens.
Additional Arguments can be:
- A built-in alias
- A custom target string, typically a URL prefix such as
https://example.com/search?q=
- The same value prefixed with
uac;
The clipboard text is appended as-is to the configured target string, and
the result is opened through ShellExecuteEx on the monitor where the cursor is
currently located.
Built-in aliases:
| Alias |
Expands to |
gpt |
https://chatgpt.com/?q= |
yt |
https://www.youtube.com/results?search_query= |
google |
https://www.google.com/search?q= |
copilot |
https://copilot.microsoft.com/?sendquery=1&q= |
x |
https://twitter.com/search?q= |
reddit |
https://www.reddit.com/search/?q= |
translate |
https://translate.google.com/?text= |
Examples:
gpt
google
https://www.bing.com/search?q=
uac;https://example.com/search?q=
Combine taskbar buttons
Use up to four semicolon-separated state values:
primaryState1;primaryState2;secondaryState1;secondaryState2
Valid values:
COMBINE_ALWAYS
COMBINE_WHEN_FULL
COMBINE_NEVER
The action toggles between the first two values for the primary taskbar. If the
third and fourth values are also provided, they control the same toggle for
secondary taskbars.
Toggle direction is tracked by an internal variable that is initialized from the
registry the first time the action runs. If you change the registry externally
between presses, the next toggle may be out of sync.
Example:
COMBINE_ALWAYS;COMBINE_NEVER
Notes
- Zone detection is based on the monitor under the cursor at the moment the hotkey fires.
Open parsed title path in explorer, with fallback to exe checks the foreground window title from right to left, splitting on -. It only accepts absolute paths that resolve to real files. If none are found, it falls back to the foreground process executable.
Opacity Up (active window) uses these fixed levels when increasing: 56, 85, 113, 141, 170, 198, 226. It only works on windows that are already layered.
Opacity Down (active window) uses these fixed levels when decreasing: 226, 198, 170, 141, 113, 85, 56, 0. If the window is not layered yet, it is first made layered and set to 226.
Toggle Always On Top (active window) and Force Kill Active Window operate on the current foreground window.
Credits
15 of the actions in this mod are based on
Click on empty taskbar space
by m1lhaus.
The global hotkey triggering mechanism is based on
keyboard-shortcut-actions
by m417z.