Is it possible to use AppsKey (context menu key) or other keys as modifier using AutoHotKey program?
Asked
Active
Viewed 869 times
2
-
See this [discussion](http://www.autohotkey.com/community/viewtopic.php?t=53971) may be its what you are looking for. As you have not told what have you tried yet. – avirk Jun 01 '12 at 06:28
-
Glad to help you. So should I post that as an answer? – avirk Jun 02 '12 at 04:45
-
@avirk Actually I found answer in the documentation page that your link refers to, so it is better that you make an answer from that page. – Handsome Nerd Jun 02 '12 at 06:12
1 Answers
2
I don't know much about AHK scripting so if there anything wrong anyone can fix it and this is from here.
;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
Or you can do this...
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
-
1@avrik, To format an **inline** sample of code, surround the text with backticks, e.g. \`CODE\`. To format a **block** of code, indent each line of text with 4 spaces, or use the **Code Sample** button on the Editor Toolbar. :) – iglvzx Jun 02 '12 at 21:54
-