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 autohotkey capable of interpreting hot-keys in the style of Ctrl+Shift+W I would assume a script like the following would work:

^+W :: ; Windows hotkeys (Ctrl+Shift+W)
   O:: Run Outlook ; Subsequent 'o' pressed => Run outlook
   E:: Run Explorer ;
return

From the documentation I note that these are called vertically stacked hotkeys and cause each line to perform the same action. In the case above, I think Ctrl+Shift+W and O will both cause outlook to be launched, whereas pressing e would cause explorer to be launched. What I would like is Ctrl+Shift+W, O runs outlook and Ctrl+Shift+W, E runs windows explorer.

Is there any way to cause a hotkey to perform context specific actions (much like in Eclipse), where I can press Ctrl+Shift+W to activate a block of specific hotkeys?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Here is a simple example based upon what you have provided.

^+W::
    Input, x, L1

    if x = o
    {
        msgbox, o pressed
    }
    else if x = e
    {
        msgbox, e pressed
    }
Return

Source Input

share|improve this answer

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.