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 tried the following AutoHotkey macro to press the c, f and k keys all at once:

SendInput cfk {enter}

This code is just giving cfk, but doesnt press this keys at once.

How do I do this?

share|improve this question

migrated from Jun 4 '11 at 14:09

This question came from our site for professional and enthusiast programmers.

In the way that you've done things at the moment the first key is released before the second is pressed. You need to tell AutoHotkey to hold the key down. Try this:

SendInput {c down}{f down}{k down}{c up}{f up}{k up} {enter}

This tells AutoHotkey to press the key, but don't forget to tell it to lift the key up again afterwards ;).

share|improve this answer

You must log in to answer this question.