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.

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

1 Answer 1

up vote 3 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.

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.