
Можно ли использовать AppsKey(клавишу контекстного меню) или другие клавиши в качестве модификаторов с помощью программы AutoHotKey?
решение1
Я не очень разбираюсь в скриптах AHK, так что если что-то не так, любой может это исправить. Вот ссылказдесь.
;Try out new hotkey mappings (Ctrl+Appskey+'R')
AppsKey & r::
if not GetKeyState("Control")
; Neither the left nor right Control key is down.
return ; i.e. Do nothing.
msgbox, hello... ctrl appskey r
return
Или вы можете сделать это...
AppsKey & Ctrl:: ; AppsKey, then Ctrl
^AppsKey:: ; Ctrl, then AppsKey
Hotkey, *r, ^@r, On
; additional hotkeys can be enabled here.
return
AppsKey & Ctrl Up:: ; Modifier(s) released
^AppsKey Up::
Hotkey, *r, Off
; additional hotkeys must be disabled here.
return
^@r: ; Label for identification only, can be anything.
msgbox, hello... %A_ThisLabel%
return