Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #persistent
- OnClipBoardChange:
- ;Perform the RegEx find and replace operation,
- ;where "//dl" is the whole-word we want to replace.
- haystack := Clipboard
- if (InStr(haystack, "https://www.dropbox.com/s/"))
- {
- needle := "//www"
- replacement := "//dl"
- result := RegExReplace(haystack, needle, replacement)
- ;Empty the Clipboard
- Clipboard =
- ;Copy the result to the Clipboard.
- Clipboard := result
- ;Wait for the Clipboard to fill.
- ClipWait
- }
- ;Done!
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement