Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to use AppsKey (context menu key) or other keys as modifier using AutoHotKey program?

share|improve this question
    
See this discussion may be its what you are looking for. As you have not told what have you tried yet. –  avirk Jun 1 '12 at 6:28
    
@avirk thanks, I got answer! –  PHPst Jun 2 '12 at 3:36
    
Glad to help you. So should I post that as an answer? –  avirk Jun 2 '12 at 4: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. –  PHPst Jun 2 '12 at 6:12

1 Answer 1

up vote 2 down vote accepted

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
share|improve this answer
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 2 '12 at 21:54
    
@iglvzx thanks for the edit. I will keep that in mind next time. –  avirk Jun 3 '12 at 14:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.