Find a Value and replace it with Clipboard

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
capioj
Posts: 3
Joined: 19 Jan 2018, 01:30

Find a Value and replace it with Clipboard

19 Jan 2018, 01:33

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!
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Find a Value and replace it with Clipboard

19 Jan 2018, 04:23

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.
Einfach nur ein toller Typ. :mrgreen:
capioj
Posts: 3
Joined: 19 Jan 2018, 01:30

Re: Find a Value and replace it with Clipboard

19 Jan 2018, 09:38

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 210 guests