Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .