I'd like to create an AutoHotKey script such that when a string item is copied to the clipboard, a search and replace is done on the string, and the resulting string be copied to the clipboard. Ideally I'd like to happen automatically upon the event of the clipboard getting populated.
Pseudo-code for this might look like:
Assume for this example that the string to be put on the clipboard is "h:\my folder"
- Event of clipboard getting populated (ideally) or if necessary, I can manually trigger the action numerous ways
- "h:\" is replaced with "\myserver\my share\"
- "\myserver\my share\my folder" is copied to the clipboard
How can I do this?