Skip to content

Commit

Permalink
feat: add ini for window wizard apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Wooster committed Oct 12, 2022
1 parent eac78d7 commit 3369788
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions Master.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Menu, Tray, Tip, WTS: Master Shortcut Script ; Change tooltip on icon in tray
:*:km@::[email protected]
:*:sw@::[email protected]
:*:wts*::Wooster Technical Solutions
:*:wsu*::Washington State University

; + & CapsLock::CapsLock
CapsLock & s::SendInput SOLIDWORKS
Expand Down
29 changes: 22 additions & 7 deletions Window Wizard.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ iniSection = WindowWizard
iniProps := {}

; Properties from INI file with their defaults
iniProps["windowList"] := "slack,teams,outlook,8by8,yourphone"
iniProps["SlackHide"] := true
iniProps["OutlookHide"] := true
iniProps["TeamsHide"] := true
iniProps["3cxHide"] := false
iniProps["8by8Hide"] := true
iniProps["YourPhoneHide"] := true
iniProps["outlookKey"] := "F10"
Expand All @@ -37,10 +37,10 @@ iniProps["YourPhoneCommand"] := "MicrosoftYourPhone_8wekyb3d8bbwe!App"

iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection)

windowList := iniProps["windowList"]
TeamsHide := iniProps["TeamsHide"]
SlackHide := iniProps["SlackHide"]
OutlookHide := iniProps["TeamsHide"]
3cxHide := iniProps["3cxHide"]
8by8Hide := iniProps["8by8Hide"]
YourPhoneHide := iniProps["YourPhoneHide"]
outlookKey := iniProps["outlookKey"]
Expand All @@ -57,11 +57,26 @@ YourPhoneWinTitle := iniProps["YourPhoneWinTitle"]
YourPhoneCommand := iniProps["YourPhoneCommand"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Hotkey, %outlookKey%, outlook
Hotkey, %teamsKey%, teams
Hotkey, %slackKey%, slack
Hotkey, %8by8Key%, 8by8
Hotkey, %YourPhoneKey%, yourPhone
If "outlook" in windowList
{
Hotkey, %outlookKey%, outlook
}
If "teams" in windowList
{
Hotkey, %teamsKey%, teams
}
If slack in windowList
{
Hotkey, %slackKey%, slack
}
If "8by8" in windowList
{
Hotkey, %8by8Key%, 8by8
}
If "yourphone" in windowList
{
Hotkey, %YourPhoneKey%, yourPhone
}
return

outlook:
Expand Down

0 comments on commit 3369788

Please sign in to comment.