Skip to content

Commit

Permalink
Allow for configuration of keys for Quick Status Change
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Feb 7, 2020
1 parent 5ed660f commit 4c36bcf
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 19 deletions.
7 changes: 4 additions & 3 deletions QI Tools/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="E8E5C9F0-3E16-41DF-81A9-B2159D7BAC33"
<!--replace this Id-->
<Product Id="7C260589-DEAC-449B-9E19-F7A08DD0D8F4"
Name="QI Tools"
Language="1033"
Version="0.0.37.0"
Version="0.0.38.0"
Manufacturer="Quest Integration"
UpgradeCode="67685DE7-5CB2-426E-8173-695978DD4D7F">

Expand All @@ -19,7 +20,7 @@
<UpgradeVersion OnlyDetect="no"
Property="PREVIOUSFOUND"
Minimum="0.0.24.0" IncludeMinimum="yes"
Maximum="0.0.37.0" IncludeMaximum="no" />
Maximum="0.0.38.0" IncludeMaximum="no" />
</Upgrade>


Expand Down
67 changes: 52 additions & 15 deletions Quick Status Change.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ iniProps["onCallColors"] := "0x0000FF,0x575757,0xC1C1C1,0xFF0000"
iniProps["codeIndex"] := 3
iniProps["changeTeams"] := 1
iniProps["change3CX"] := 1
iniProps["availKey"] := "^F1"
iniProps["awayKey"] := "^F2"
iniProps["dndKey"] := "^F3"
iniProps["busyKey"] := "^F4"
iniProps["lunchKey"] := "^F6"
iniProps["qLoginKey"] := "^F7"
iniProps["qLogoutKey"] := "^F8"

iniProps := QIFunctions_readINI(pathINI, iniProps, iniSection)

Expand All @@ -40,23 +47,53 @@ codeF8 = % "*63" ; Queue log out
teamsSleep := iniProps["teamsSleep"]
changeTeams := iniProps["changeTeams"]
change3CX := iniProps["change3CX"]
availKey := iniProps["availKey"]
awayKey := iniProps["awayKey"]
dndKey := iniProps["dndKey"]
busyKey := iniProps["busyKey"]
lunchKey := iniProps["lunchKey"]
qLoginKey := iniProps["qLoginKey"]
qLogoutKey := iniProps["qLogoutKey"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^F1::StatusChange("available", codeF1, "green", changeTeams, change3CX)

^F2::StatusChange("brb", codeF2, "yellow", changeTeams, change3CX, 1)

^F3::StatusChange("dnd", codeF3, "red", changeTeams, change3CX)

^F4::StatusChange("busy", codeF3, "red", changeTeams, change3CX)

^F5::StatusChange("available", codeF5, "yellow", changeTeams, change3CX)

^F6::StatusChange("brb", codeF6, "red", changeTeams, change3CX)

^F7::StatusChange("", codeF7, , 0, change3CX)

^F8::StatusChange("", codeF8, , 0, change3CX)
Hotkey, %availKey%, availLabel
Hotkey, %awayKey%, awayLabel
Hotkey, %dndKey%, dndLabel
Hotkey, %busyKey%, busyLabel
Hotkey, %lunchKey%, lunchLabel
Hotkey, %qLoginKey%, qLogin
Hotkey, %qLogoutKey%, qLogout
return

availLabel:
StatusChange("available", codeF1, "green", changeTeams, change3CX)
return

awayLabel:
StatusChange("brb", codeF2, "yellow", changeTeams, change3CX, 1)
return

dndLabel:
StatusChange("dnd", codeF3, "red", changeTeams, change3CX)
return

busyLabel:
StatusChange("busy", codeF3, "red", changeTeams, change3CX)
return

lunchLabel:
StatusChange("brb", codeF6, "red", changeTeams, change3CX)
return

; ^F5::StatusChange("available", codeF5, "yellow", changeTeams, change3CX)

qLogin:
StatusChange("", codeF7, , 0, change3CX)
return

qLogout:
StatusChange("", codeF8, , 0, change3CX)
return

;############### Actual work being done ###################
StatusChange(keysTeams, pos3CX, icoColor := "default", teams := 1, 3CX := 1, winLock := 0) ; The function that actually does the window switching and change of status
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changes status in both MS Teams and 3CX Desktop. Teams doesn't seem to be perfec

3CX actually dials a number (e.g. **\*30** for *Available*) to change its status. That makes it slow and it "announces" the change over your headset, but it should be almost perfectly reliable.

The shortcuts below are editable in the **Settings**. See me for tips on changing these.

+ Ctrl+F1 - *Available*
+ Ctrl+F2 - *Away*
+ Ctrl+F3 - *Do Not Disturb* (**NO** notifications in MS Teams)
Expand All @@ -16,7 +18,6 @@ Changes status in both MS Teams and 3CX Desktop. Teams doesn't seem to be perfec
Copies selected text into 3CX. **Must** have text copied to clipboard.

+ NumLock - Dials number on clipboard (must copy number using ctrl+c *before* pressing numlock)
+ F12 - Brings 3CX into focus (does not copy anything)

_See below for notes on modifying Settings (INI file)_

Expand Down

0 comments on commit 4c36bcf

Please sign in to comment.