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.

Ram Rachum
  • 4,450

1 Answers1

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.

Bavi_H
  • 6,710