Created
July 6, 2023 14:39
-
-
Save tdalon/71c9914890a46bd775dc711119f8e35f to your computer and use it in GitHub Desktop.
AutoHotkey: Confluence: Personalize mention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Confluence_PersonalizeMention() { | |
If GetKeyState("Ctrl") { | |
Run, "https://tdalon.blogspot.com/2023/07/confluence-personalize-mentions.html" | |
return | |
} | |
ClipboardBackup := Clipboard | |
SendInput {Ctrl down}{Shift down}{Left} | |
SendInput {Ctrl up}{Shift up} | |
sClip := Clip_GetSelection(False) | |
; Remove company in () | |
If InStr(sClip,")") { | |
While !RegExMatch(sClip,"\(.*\)") { | |
SendInput {Ctrl down}{Shift down} | |
SendInput {Left} | |
SendInput {Ctrl up}{Shift up} | |
sClip := Clip_GetSelection(False) | |
} | |
SendInput {Backspace 2} | |
} | |
; Remove Lastname in Lastname, Firstname format | |
SendInput {Ctrl down}{Left}{Backspace 2}{Right} | |
SendInput {Ctrl up} | |
Clipboard := ClipboardBackup | |
} ; eofun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See details https://tdalon.blogspot.com/2023/07/confluence-personalize-mentions.html