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:
~^H::
Send GOBACK
return
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?
Thank you!
Typing certain text before opening a window with a shortcut
Re: Typing certain text before opening a window with a shortcut
try this:
Code: Select all
^h::
Send GOBACK^h
return
Re: Typing certain text before opening a window with a shortcut
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:
$^h::
Send GOBACK
Send ^h
return
$^h::
Send GOBACK
Send ^h
return
Who is online
Users browsing this forum: doodles333 and 298 guests