Skip to content

Commit

Permalink
feat: add windowList iniProp
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Oct 12, 2022
1 parent 3369788 commit 4c55993
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.lnk
*.log
QITools-karl.ini
*.zip

# VS stuff
*.suo
Expand Down
17 changes: 12 additions & 5 deletions Window Wizard.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ iniProps["YourPhoneCommand"] := "MicrosoftYourPhone_8wekyb3d8bbwe!App"

iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection)

; windowList := StrSplit(iniProps["windowList"], ",")
windowList := iniProps["windowList"]
TeamsHide := iniProps["TeamsHide"]
SlackHide := iniProps["SlackHide"]
Expand All @@ -57,23 +58,29 @@ YourPhoneWinTitle := iniProps["YourPhoneWinTitle"]
YourPhoneCommand := iniProps["YourPhoneCommand"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If "outlook" in windowList
outlookVar = outlook
teamsVar = teams
slackVar = slack
8by8Var = 8by8
yourphoneVar = yourphone

If outlookVar in %windowList%
{
Hotkey, %outlookKey%, outlook
}
If "teams" in windowList
If teamsVar in %windowList%
{
Hotkey, %teamsKey%, teams
}
If slack in windowList
If slackVar in %windowList%
{
Hotkey, %slackKey%, slack
}
If "8by8" in windowList
If 8by8Var in %windowList%
{
Hotkey, %8by8Key%, 8by8
}
If "yourphone" in windowList
If yourphoneVar in %windowList%
{
Hotkey, %YourPhoneKey%, yourPhone
}
Expand Down

0 comments on commit 4c55993

Please sign in to comment.