我经常发现自己把“睡眠”快捷方式错打成了“退出”。所以我想禁用它的快捷方式,即Win+XUI:
并重新分配它的Win+XUO如何实现这使用AutoHotkey?
###如果你想使用AutoHotkey(而不是Windows或其他工具中的组策略编辑器),请尝试:
#NoEnv
#InstallMouseHook
~#x::Return ; The tilde prefix (~) prevents AHK from blocking the key-down/up events (#x passes through)
; A_PriorHotKey is the most recently executed hotkey
; A_PriorKey is the last key pressed
; Using the #If-directive you can create context-sensitive hotkeys and hotstrings
#If (A_PriorHotkey == "~#x" && A_PriorKey = "u")
i::Return ; Do nothing
o::Send i
#If