Skip to content

Commit

Permalink
add "Your Phone" to Window Wizard and bump installer to version 0.0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Sep 21, 2021
1 parent b92664b commit 39d9b4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QI Tools/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!--replace this Id-->
<Product Id="9411D75C-25A0-488E-8872-CD4404BA82FF"
<Product Id="BDF8AB2B-4780-4C0E-8C14-86080CA2E080"
Name="Wooster AHK Scripts"
Language="1033"
Version="0.0.2.1"
Version="0.0.3.0"
Manufacturer="Wooster Technical Solutions"
UpgradeCode="82FBCE35-5FAA-4996-827E-81FA2665E7AE">

Expand All @@ -20,7 +20,7 @@
<UpgradeVersion OnlyDetect="no"
Property="PREVIOUSFOUND"
Minimum="0.0.0.0" IncludeMinimum="yes"
Maximum="0.0.2.1" IncludeMaximum="no" />
Maximum="0.0.3.0" IncludeMaximum="no" />
</Upgrade>


Expand Down
20 changes: 20 additions & 0 deletions Window Wizard.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ iniProps["OutlookHide"] := true
iniProps["TeamsHide"] := true
iniProps["3cxHide"] := false
iniProps["8by8Hide"] := true
iniProps["YourPhoneHide"] := true
iniProps["outlookKey"] := "F10"
iniProps["slackKey"] := "F8"
iniProps["teamsKey"] := "F9"
iniProps["8by8Key"] := "F11"
iniProps["YourPhoneKey"] := "F7"
iniProps["teamsCommand"] := """""C:\Users\" A_UserName "\AppData\Local\Microsoft\Teams\Update.exe"" --processStart ""Teams.exe"""""
iniProps["slackCommand"] := "Slack.exe"
iniProps["slackWinTitle"] := "Slack |"
iniProps["8by8WinTitle"] := "8x8 Work"
iniProps["8by8Command"] := """""C:\Users\" A_UserName "\AppData\Local\8x8-Work\8x8 Work.exe"""
iniProps["YourPhoneWinTitle"] := "Your Phone"
iniProps["YourPhoneCommand"] := "MicrosoftYourPhone_8wekyb3d8bbwe!App"

iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection)

Expand All @@ -38,21 +42,26 @@ SlackHide := iniProps["SlackHide"]
OutlookHide := iniProps["TeamsHide"]
3cxHide := iniProps["3cxHide"]
8by8Hide := iniProps["8by8Hide"]
YourPhoneHide := iniProps["YourPhoneHide"]
outlookKey := iniProps["outlookKey"]
slackKey := iniProps["slackKey"]
teamsKey := iniProps["teamsKey"]
8by8Key := iniProps ["8by8Key"]
YourPhoneKey := iniProps["YourPhoneKey"]
teamsCommand := iniProps["teamsCommand"]
slackCommand := iniProps["slackCommand"]
slackWinTitle := iniProps["slackWinTitle"]
8by8WinTitle := iniProps["8by8WinTitle"]
8by8Command := iniProps["8by8Command"]
YourPhoneWinTitle := iniProps["YourPhoneWinTitle"]
YourPhoneCommand := iniProps["YourPhoneCommand"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Hotkey, %outlookKey%, outlook
Hotkey, %teamsKey%, teams
Hotkey, %slackKey%, slack
Hotkey, %8by8Key%, 8by8
Hotkey, %YourPhoneKey%, yourPhone
return

outlook:
Expand Down Expand Up @@ -99,6 +108,17 @@ if WinExist(8by8WinTitle)
}
return

yourPhone:
if WinExist(YourPhoneWinTitle)
{
WTSFunctions_winShow(YourPhoneHide)
} else {
try run %YourPhoneCommand%
catch e
MsgBox, 16, Your Phone Error, Didn't find Your Phone window`nUnable to run Your Phone`n%e%
}
return

; ^!p::gotoChannel("DE{space}-{space}TS") ; Direct access to DE - TS "general" channel

; ^!l::gotoChannel("Lunch") ; Direct access to DE - TS "lunch" channel
Expand Down

0 comments on commit 39d9b4d

Please sign in to comment.