3

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.

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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