Skip to content

Commit

Permalink
initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Jan 7, 2019
1 parent 320e3bc commit 5df21a6
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.exe
25 changes: 25 additions & 0 deletions 3CX.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
^!\:: ; ctrl+alt+\ switches to 3CX and readies it for number entry (if on number page)
if WinExist("ahk_exe 3CXWin8Phone.exe")
{
winid := WinExist("ahk_exe 3CXWin8Phone.exe")
}

if winid
{
WinActivate
WinActivate
WinWaitActive, , , 1
If ErrorLevel
{
MsgBox, 8208, Error, WinWaitActive Timed Out, cancelling
return
}
} else {
MsgBox, 8208, Not Running, 3CX is not running, cancelling
return
}

Click, 225, 95 ; clicks in textbox
SendInput, ^a{Delete} ; selects all and clears text

return
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# 3CX
# 3CX
hotkey for easily switching to 3CX and getting ready for number input

## 3CX Script
This is a compiled [AutoHotKey](https://autohotkey.com/ "AutoHotKey's Homepage") script that makes it easy to switch to 3CX.

Simply press CTRL+ALT+\ (the one above the Enter key) to switch to the open 3CX window and clear any existing number and get ready to input a number.

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

Also, a real limitation is that it must be on the screen that allows direct number entry:

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

_Please let me know if you find any issues_
Binary file added images/3CX_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5df21a6

Please sign in to comment.