Hello everyone,
Please help me with a script that when we press a Hot Key it will find a text and replace with the clipboard.
For example:
I copied “Hello”, I want to find “Hi” text in a paragraph and when I press P it will automatic Find “Hi” and replace with “Hello”
Thank you!
Find a Value and replace it with Clipboard
- divanebaba
- Posts: 805
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: Find a Value and replace it with Clipboard
Nice Idea.
If you have tested some own code, post it, so you can get reliable support.
Look into help-file for Hotkey, StringReplace, Loop (parsing) and you will surely find approaches for your issue.
If you have tested some own code, post it, so you can get reliable support.
Look into help-file for Hotkey, StringReplace, Loop (parsing) and you will surely find approaches for your issue.
Einfach nur ein toller Typ.
Re: Find a Value and replace it with Clipboard
This is the code I found in the forum, but it only change all the space the clipboard text to dot when paste, there is no Find a specific text in paragraph and auto replace it.
#persistent
return
OnClipboardChange:
StringReplace, Clipboard, Clipboard, %A_SPACE%, ., All
return
#persistent
return
OnClipboardChange:
StringReplace, Clipboard, Clipboard, %A_SPACE%, ., All
return