Last active
January 26, 2025 05:38
-
-
Save AkashaP/aa9fa2939632a5a027febace51853e52 to your computer and use it in GitHub Desktop.
Win Key + RButton Mask semi mask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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