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.

link|improve this question

72% accept rate
Check out AutoIt (what autohotkey was based on), _WinAPI_SetWindowsHookEx() function for complete key sequence capture. – MaQleod Sep 1 '11 at 16:11
feedback

1 Answer

up vote 1 down vote accepted

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

#c::
  Input, x, L1

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

Return

See the Input documentation for more ideas and examples.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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