Ctrl+H opens the Find and Replace window in a program I'm using. After running a Replace All operation, the cursor is left at the very last replacement, but I want it to go back to its starting position. I plan on doing this with a simple trick: inserting GOBACK at my current cursor position before running a Replace All, then finding the GOBACK and deleting it.
I have this:
The problem is that it inserts GOBACK into the Find field, i.e., it's typed after the Find and Replace window is opened. What I need is for it to be typed before the window is opened, so I'm guessing a pass-through is not what I need here, what can I do?
Get help with using AutoHotkey and its commands and hotkeys
3 posts • Page 1 of 1
Code: Select all
^h:: Send GOBACK^h return
Thank you Barney, that sends "GOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACK", etc. multiple times and never actually opens the Find and Replace window . I think I've found the solution: adding a $ in front of the hotkey, like this: