diff --git a/ScriptStart.ahk b/ScriptStart.ahk index 132114d..aa4afae 100644 --- a/ScriptStart.ahk +++ b/ScriptStart.ahk @@ -12,8 +12,8 @@ iniSection = ScriptStart iniProps := {} ; Properties from INI file with their defaults -iniProps["fullList"] := "Master,Basic Shortcuts,Quick Status Change,3CX,Window Wizard,AppKill" -iniProps["startList"] := "Master,Basic Shortcuts,Quick Status Change,3CX,Window Wizard,AppKill" +iniProps["fullList"] := "Master,Basic Shortcuts,Quick Status Change,Window Wizard,AppKill" +iniProps["startList"] := "Master,Basic Shortcuts,Quick Status Change,Window Wizard,AppKill" iniProps["delay"] := 100 iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection) diff --git a/Window Wizard.ahk b/Window Wizard.ahk index 603f75e..c707e27 100644 --- a/Window Wizard.ahk +++ b/Window Wizard.ahk @@ -24,6 +24,8 @@ iniProps["outlookKey"] := "F10" iniProps["slackKey"] := "F8" iniProps["teamsKey"] := "F9" iniProps["teamsCommand"] := """""C:\Users\" A_UserName "\AppData\Local\Microsoft\Teams\Update.exe"" --processStart ""Teams.exe""""" +iniProps["slackCommand"] := "Slack.exe" +iniProps["slackWinTitle"] := "Slack |" iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection) @@ -35,6 +37,8 @@ outlookKey := iniProps["outlookKey"] slackKey := iniProps["slackKey"] teamsKey := iniProps["teamsKey"] teamsCommand := iniProps["teamsCommand"] +slackCommand := iniProps["slackCommand"] +slackWinTitle := iniProps["slackWinTitle"] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Hotkey, %outlookKey%, outlook @@ -65,11 +69,11 @@ if WinExist("| Microsoft Teams") or WinExist("ahk_exe Teams.exe") return slack: -if WinExist("Slack |") +if WinExist(slackWinTitle) { WTSFunctions_winShow(SlackHide) } else { - try run Slack.exe + try run slackCommand catch e MsgBox, 16, Slack Error, Didn't find Slack window`nUnable to run Slack`n%e% }