0

I want to do a seemingly simple action but I'm having trouble figuring out how. I want to remap Ctrl+F -- which natively opens a 'find' window in the program I'm using -- but I want to create a new hotkey for the 'find' functionality, Ctrl+Alt+F. Here's my code:

^f::Send {Right}
^!f::Send {Ctrl down}f{Ctrl up}

The result is predictable. Ctrl+Alt+F simulates the key presses for Ctrl+F, which then triggers my other mapping. In the end, both Ctrl+F and Ctrl+Alt+F do the same thing.

How can I have Ctrl+Alt+F inherit the original functionality of Ctrl+F (the 'find' window), while Ctrl+F is remapped to Arrow right?

2
  • I figured out a way to do it in my case. Instead of attempting to map to the previous hotkey, I just map to a series of menu navigation options to achieve the same result. Aug 14, 2014 at 20:14
  • 1
    I am trying to imagine why would one require such a weird remapping. Aug 14, 2014 at 20:28

1 Answer 1

0

You need to prepend a $ to the first hotkey to prevent the Send command from triggering it:

$^f::send {right}
^!f::send ^f

You must log in to answer this question.

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