Search and Replace Clipboard Text with AutoHotkey

Print View Mobile View

This script will allow you to automatically search and replace a specific text in the clipboard with something else that you define:

#Persistent
return
OnClipboardChange: 
StringReplace, clipboard, clipboard, hello, bye, All
return

Here hello is replaced with bye.

If the text appears multiple times in the copied string, it is replaced everywhere. If you omit All, only the first occurrence of the text will be replaced.