Skip to content

Instantly share code, notes, and snippets.

@AkashaP
Last active January 26, 2025 05:38
Show Gist options
  • Save AkashaP/aa9fa2939632a5a027febace51853e52 to your computer and use it in GitHub Desktop.
Save AkashaP/aa9fa2939632a5a027febace51853e52 to your computer and use it in GitHub Desktop.
Win Key + RButton Mask semi mask
#Requires AutoHotkey v2.0
#SingleInstance Force
; Mask windows start menu shortcut (somewhat) without it showing up when holding right mouse button
; with this you can still use windows key as shortcut in some applications
; without completely disabling windows key + windows+key shortcuts in other solutions
; it does not work perfectly in my case as double click LWin, spamming LWin + a bunch of buttons still causes start menu to open
; but this works 'well enough', maybe consider it a feature, i don't spam LWin for anything anyway, it's just occasional press and keyboard shortcut
; I needed it to not go off while holding right click
; based on
; https://superuser.com/questions/1767403/disable-windows-start-menu-without-disabling-the-windows-key-in-windows-10/1843283#1843283
; https://superuser.com/questions/1767403/disable-windows-start-menu-without-disabling-the-windows-key-in-windows-10/1843283#1843283
LWin:: {
Send "{LWin Down}"
}
LWin Up:: {
Send "{Blind}{vkE8}{LWin Up}"
}
; added lines, adapt to need
*LWin Up:: {
Send "{Blind}{vkE8}{LWin Up}"
}
RButton Up:: {
Send "{Blind}{vkE8}{LWin Up}{RButton Up}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment