Skip to content

Commit

Permalink
slack stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Jan 18, 2021
1 parent 03c8128 commit 99140bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ScriptStart.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions Window Wizard.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down Expand Up @@ -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%
}
Expand Down

0 comments on commit 99140bf

Please sign in to comment.