
是否可以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