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 am trying to do run an Autohotkey script that would send a bunch of keystrokes to an active window (e.g windows explorer). I tried several things, but it all fails when it comes to ctrl...

^!r::

Send {^f}

Send {Up}

The up key gets send, but ctrl+f does not happen. Read the manual, tried several applications as active windows, and still no luck. Seems very simple, but ...

share|improve this question

migrated from stackoverflow.com Dec 20 '12 at 23:29

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

up vote 1 down vote accepted
F1::^f

This makes F1 behave as it is a Ctrl+F , F1 doesn't exist anymore If you wan't to keep the old keys add ~

~F1::^f   

this will fire both F1 and ^f

if you wan't more

    F1::
       Send,^f
       Send,{up}
    return

Maybe you had multiple scripts with the same hotkey -> ^!r , if you do that the hotkey might not work properly.

share|improve this answer
    
thanks, this worked: F1:: Send,^f Send,{up} return – Joe Dec 20 '12 at 21:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .