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

I want to make AutoHotKey listen to a key sequence, specifically Start-C -> D, and do some action. How can I do that? I couldn't find a way to define a key sequence.

share|improve this question
Check out AutoIt (what autohotkey was based on), _WinAPI_SetWindowsHookEx() function for complete key sequence capture. – MaQleod Sep 1 '11 at 16:11
up vote 3 down vote accepted

Here's an example that lets you press Win+C, then it waits for one more key.

  Input, x, L1

  if x = d
    Send 1 ;do something
  else if x = e
    Send 2 ;do something else


See the Input documentation for more ideas and examples.

share|improve this answer

You must log in to answer this question.

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