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 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.

add comment

1 Answer

up vote 0 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
add comment

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.