DonationCoder.com Software > Finished Programs
DONE: ahk Find and Replace
skwire:
Consider the following example:
--- Code: Autohotkey ---^1:: ; Ctrl+1{ mySavedClip := Clipboard Clipboard := "" ; Flush the clipboard SendInput, ^c ClipWait, 2 StringReplace, Clipboard, Clipboard, @1, % mySavedClip, All}Return
Because programmatically getting text from a browser is an exercise in frustration, you must first highlight the text you want searched through and then press the Ctrl+1 hotkey. After doing that, any occurrences of @1 will be replaced with what was originally on your clipboard and then the new text is put back on the clipboard.
DougleBug:
Wow that works bob on, thank you very much for you help in this.
This is just what I was after, Doug.
skwire:
You're welcome. I'm glad to hear it works for you. :Thmbsup:
Navigation
[0] Message Index
[*] Previous page
Go to full version