Skip to content

Instantly share code, notes, and snippets.

@tdalon
Created July 6, 2023 14:39
Show Gist options
  • Save tdalon/71c9914890a46bd775dc711119f8e35f to your computer and use it in GitHub Desktop.
Save tdalon/71c9914890a46bd775dc711119f8e35f to your computer and use it in GitHub Desktop.
AutoHotkey: Confluence: Personalize mention
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
@tdalon
Copy link
Author

tdalon commented Jul 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment