#IfWinActive, ahk_exe chrome.exe
^!vk45:: ; crtl+alt+e
WinGetTitle, winTitle, % "A"
If winTitle~="^Toggl\s"
TrayTip,, % "first action"
Else If winTitle~="^Checkvist:\s"
TrayTip,, % "second action"
Else
TrayTip,, % "third action"
winTitle:=""
Return
Ou:
#IfWinActive, ahk_exe chrome.exe
^!vk45:: ; crtl+alt+e
SendEvent, ^{vk4C} ; crtl+l
clipContent:=ClipboardAll
SendEvent, ^{Ins}
ClipWait, .5
If ErrorLevel
{
TrayTip, % "Error", % "Clipboard is empty!",, 3
Clipboard:=clipContent
Return
}
clipURL:=Clipboard
Clipboard:=clipContent
If clipURL~="toggl.com"
TrayTip,, % "first action"
Else If clipURL~="checkvist.com"
TrayTip,, % "second action"
Else
TrayTip,, % "third action"
clipURL:=""
Return