Skip to content

Commit

Permalink
add gmsearch and update for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Jan 24, 2019
1 parent 9601595 commit 3fd0818
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 21 deletions.
31 changes: 31 additions & 0 deletions GMSearch.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#SingleInstance, force

^!=:: ; ctrl+alt+= clears search in GM
; winid := WinExist()
if WinExist("ahk_exe gmw.exe")
{
winid := WinExist("ahk_exe gmw.exe")
}
if WinExist("ahk_exe mstsc.exe")
{
winid := WinExist("ahk_exe mstsc.exe")
}
; MsgBox %winid% ; debugging only
if winid
{
InputBox, var, Name, Name to Search For
WinActivate
WinActivate
WinWaitActive, , , 1
If ErrorLevel
{
MsgBox, 8208, Error, WinWaitActive Timed Out, cancelling
return
}
} else {
MsgBox, 8208, Not Running, GoldMine is not running, cancelling
return
}
Click, 200, 90 ; clicks in search field of GM
SendInput, ^a%var%{Enter} ; selects all and clears text
return
34 changes: 16 additions & 18 deletions QI Tools.aip
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ROW Property="ProductCode" Value="1033:{2D8889B3-EBC3-4948-BC5C-7A6D3025DB8B} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="QI Tools"/>
<ROW Property="ProductVersion" Value="0.0.8" Type="32"/>
<ROW Property="ProductVersion" Value="0.0.9" Type="32"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{99474B2B-9AF8-43B4-AC8F-8BAE77F237B5}"/>
Expand All @@ -38,24 +38,24 @@
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiCompsComponent">
<ROW Component="CX" ComponentId="{A105D081-730C-4B59-A19C-109D9C94560D}" Directory_="CX_Dir" Attributes="0"/>
<ROW Component="CX.exe" ComponentId="{5ADB3806-AE26-400B-94F9-9DE9F17C2C8B}" Directory_="APPDIR" Attributes="256" KeyPath="CX.exe"/>
<ROW Component="GMSearch.exe" ComponentId="{52297EBD-DB1D-43BB-9FB6-F06656CF37A4}" Directory_="APPDIR" Attributes="256" KeyPath="GMSearch.exe"/>
<ROW Component="HipChatScripts.exe" ComponentId="{72964D5A-7E32-4207-BB0B-704AF4C0B116}" Directory_="APPDIR" Attributes="256" KeyPath="HipChatScripts.exe"/>
<ROW Component="CX.exe" ComponentId="{6CDC87DF-BAAD-4A47-B068-6C21F63CF1DD}" Directory_="APPDIR" Attributes="256" KeyPath="CX.exe"/>
<ROW Component="GMSearch.exe" ComponentId="{00ABD3E7-30F1-44D6-91FC-5BDDD2B66847}" Directory_="APPDIR" Attributes="256" KeyPath="GMSearch.exe"/>
<ROW Component="ProductInformation" ComponentId="{2DE18C83-706C-462E-97CA-B35FFA2EBCCF}" Directory_="APPDIR" Attributes="4" KeyPath="Version"/>
<ROW Component="QITools" ComponentId="{0CB624EA-A9BC-4D56-B86E-06A4AFFB2B11}" Directory_="QITools_Dir" Attributes="0"/>
<ROW Component="WindowSwitching.exe" ComponentId="{FD23F2D6-49FA-4D24-8479-F2B5F9C56392}" Directory_="APPDIR" Attributes="256" KeyPath="WindowSwitching.exe"/>
<ROW Component="runall.bat" ComponentId="{8C29076B-0EE3-4C14-A744-B609F7AA9CD6}" Directory_="APPDIR" Attributes="0" KeyPath="runall.bat" Type="0"/>
<ROW Component="QuickStatusChange.exe" ComponentId="{576B0567-66E4-4A5D-9954-527C6FF3CCA3}" Directory_="APPDIR" Attributes="256" KeyPath="QuickStatusChange.exe"/>
<ROW Component="WindowSwitching.exe" ComponentId="{E1421FBE-7BEC-487E-AB61-ED5DECF7C060}" Directory_="APPDIR" Attributes="256" KeyPath="WindowSwitching.exe"/>
<ROW Component="runall.bat" ComponentId="{80B376A7-6D75-42B1-BBC6-5D3CDF621B06}" Directory_="APPDIR" Attributes="0" KeyPath="runall.bat" Type="0"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFeatsComponent">
<ROW Feature="MainFeature" Title="MainFeature" Description="Description" Display="1" Level="1" Directory_="APPDIR" Attributes="0" Components="CX CX.exe GMSearch.exe HipChatScripts.exe ProductInformation QITools WindowSwitching.exe runall.bat"/>
<ROW Feature="MainFeature" Title="MainFeature" Description="Description" Display="1" Level="1" Directory_="APPDIR" Attributes="0" Components="CX CX.exe GMSearch.exe ProductInformation QITools QuickStatusChange.exe WindowSwitching.exe runall.bat"/>
<ATTRIBUTE name="CurrentFeature" value="MainFeature"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFilesComponent">
<ROW File="CX.exe" Component_="CX.exe" FileName="3CX.exe" Attributes="0" SourcePath="3CX.exe" SelfReg="false" NextFile="WindowSwitching.exe" DigSign="true"/>
<ROW File="GMSearch.exe" Component_="GMSearch.exe" FileName="GMSearch.exe" Attributes="0" SourcePath="..\GMSearch\GMSearch.exe" SelfReg="false" NextFile="runall.bat" DigSign="true"/>
<ROW File="HipChatScripts.exe" Component_="HipChatScripts.exe" FileName="HIPCHA~1.EXE|HipChat Scripts.exe" Attributes="0" SourcePath="..\AutoHotKey\HipChat Scripts.exe" SelfReg="false" DigSign="true"/>
<ROW File="WindowSwitching.exe" Component_="WindowSwitching.exe" FileName="WINDOW~1.EXE|Window Switching.exe" Attributes="0" SourcePath="..\AutoHotKey\Window Switching.exe" SelfReg="false" NextFile="HipChatScripts.exe" DigSign="true"/>
<ROW File="runall.bat" Component_="runall.bat" FileName="RUNALL~1.BAT|run all.bat" Attributes="0" SourcePath="run all.bat" SelfReg="false" NextFile="CX.exe"/>
<ROW File="CX.exe" Component_="CX.exe" FileName="3CX.exe" Attributes="0" SourcePath="3CX.exe" SelfReg="false" NextFile="GMSearch.exe" DigSign="true"/>
<ROW File="GMSearch.exe" Component_="GMSearch.exe" FileName="GMSearch.exe" Attributes="0" SourcePath="GMSearch.exe" SelfReg="false" NextFile="QuickStatusChange.exe" DigSign="true"/>
<ROW File="QuickStatusChange.exe" Component_="QuickStatusChange.exe" FileName="QUICKS~1.EXE|Quick Status Change.exe" Attributes="0" SourcePath="Quick Status Change.exe" SelfReg="false" NextFile="WindowSwitching.exe" DigSign="true"/>
<ROW File="WindowSwitching.exe" Component_="WindowSwitching.exe" FileName="WINDOW~1.EXE|Window Switching.exe" Attributes="0" SourcePath="Window Switching.exe" SelfReg="false" NextFile="runall.bat" DigSign="true"/>
<ROW File="runall.bat" Component_="runall.bat" FileName="RUNALL~1.BAT|run all.bat" Attributes="0" SourcePath="run all.bat" SelfReg="false"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.BootstrOptComponent">
<ROW BootstrOptKey="GlobalOptions" DownloadFolder="[AppDataFolder][|Manufacturer]\[|ProductName]\prerequisites" Options="2"/>
Expand Down Expand Up @@ -168,13 +168,11 @@
<ROW Registry="Version" Root="-1" Key="Software\[Manufacturer]\[ProductName]" Name="Version" Value="[ProductVersion]" Component_="ProductInformation"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiShortsComponent">
<ROW Shortcut="CX" Directory_="StartupFolder" Name="3CX" Component_="CX.exe" Target="[#CX.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="CX_1" Directory_="CX_Dir" Name="3CX" Component_="CX.exe" Target="[#CX.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="CX" Directory_="CX_Dir" Name="3CX" Component_="CX.exe" Target="[#CX.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="CX_1" Directory_="StartupFolder" Name="3CX" Component_="CX.exe" Target="[#CX.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="GMSearch" Directory_="CX_Dir" Name="GMSearch" Component_="GMSearch.exe" Target="[#GMSearch.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="GMSearch_1" Directory_="StartupFolder" Name="GMSearch" Component_="GMSearch.exe" Target="[#GMSearch.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="HipChatScripts" Directory_="CX_Dir" Name="HIPCHA~1|HipChat Scripts" Component_="HipChatScripts.exe" Target="[#HipChatScripts.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="HipChatScripts_1" Directory_="StartupFolder" Name="HIPCHA~1|HipChat Scripts" Component_="HipChatScripts.exe" Target="[#HipChatScripts.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="RunAll" Directory_="CX_Dir" Name="RUNALL~1|Run All" Component_="runall.bat" Target="[#runall.bat]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="QuickStatusChange" Directory_="CX_Dir" Name="QUICKS~1|Quick Status Change" Component_="QuickStatusChange.exe" Target="[#QuickStatusChange.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="QuickStatusChange_1" Directory_="StartupFolder" Name="QUICKS~1|Quick Status Change" Component_="QuickStatusChange.exe" Target="[#QuickStatusChange.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
<ROW Shortcut="WindowSwitching" Directory_="CX_Dir" Name="WINDOW~1|Window Switching" Component_="WindowSwitching.exe" Target="[#WindowSwitching.exe]" Hotkey="0" Icon_="WindowSwitching.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiThemeComponent">
Expand Down
2 changes: 1 addition & 1 deletion Quick Status Change.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ posDND := "30,155"
return

^F2::
StatusChange("/dnd On Phone", "/dnd", posAvail)
StatusChange("/dnd On Phone", "/dnd", posDND)
return

^F3::
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Also, a real limitation is that it must be on the screen that allows direct numb

![only 3CX screen that this works for](images/3CX_screen.png)

## GMSearch Script
This is a compiled [AutoHotKey](https://autohotkey.com/ "AutoHotKey's Homepage") script that makes it easy to search for a contact in GM.

Simply press CTRL+ALT+= to get a message box asking for the contact's name (same as you would in the search field in the upper left corner of GM). It will then do the search for you and return the results in GM.

Make sure to have GM running or you'll get an error message

## Window Switching Script
Quick switching to commonly open windows

Expand Down
4 changes: 2 additions & 2 deletions run all.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\3CX.exe"
Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\GMSearch.exe"
Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\HipChat Scripts.exe"
rem Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\GMSearch.exe"
Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\Quick Status Change.exe"
rem Start "" "C:\Program Files (x86)\Quest Integration\QI Tools\Window Switching.exe"

0 comments on commit 3fd0818

Please sign in to comment.