Skip to content

Instantly share code, notes, and snippets.

@0nelight
Created July 30, 2023 15:54
Show Gist options
  • Save 0nelight/70a715e6e1ed0fc70c3ebd7336a1ef26 to your computer and use it in GitHub Desktop.
Save 0nelight/70a715e6e1ed0fc70c3ebd7336a1ef26 to your computer and use it in GitHub Desktop.
This script removes occurence of "mailto" when Copy/Pasting text
;Autohotkeyscript to remove "mailto:" in front of Copy/Paste
;Download https://www.autohotkey.com/
;https://www.autohotkey.com/docs/v2/lib/A_Clipboard.htm
Persistent
OnClipboardChange ClipChanged
ClipChanged(clip_type) {
result := RegExReplace(A_Clipboard,"mailto\:(.*)","$1")
if result
A_Clipboard := result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment