-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to copy-paste from selected field
- Loading branch information
1 parent
2fe53a0
commit 1b95d08
Showing
4 changed files
with
92 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,50 @@ | ||
F12:: ; F12 switches to 3CX and readies it for number entry (if on number page) | ||
#SingleInstance, force | ||
|
||
if WinExist("ahk_exe 3CXWin8Phone.exe") | ||
3CXFocus(paste:=0) | ||
{ | ||
winid := WinExist("ahk_exe 3CXWin8Phone.exe") | ||
} | ||
if WinExist("ahk_exe 3CXWin8Phone.exe") | ||
{ | ||
winid := WinExist("ahk_exe 3CXWin8Phone.exe") | ||
} | ||
|
||
if winid | ||
{ | ||
WinActivate | ||
WinActivate | ||
WinWaitActive, , , 1 | ||
If ErrorLevel | ||
if winid | ||
{ | ||
MsgBox, 8208, Error, WinWaitActive Timed Out, cancelling | ||
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 | ||
} | ||
} else { | ||
MsgBox, 8208, Not Running, 3CX is not running, cancelling | ||
return | ||
|
||
Click, 280, 120 ; clicks in textbox | ||
SendInput, ^a{Delete} ; selects all and clears text | ||
|
||
if paste | ||
{ | ||
SendInput, ^v | ||
} | ||
|
||
return | ||
} | ||
|
||
Click, 280, 120 ; clicks in textbox | ||
SendInput, ^a{Delete} ; selects all and clears text | ||
#SingleInstance, force | ||
|
||
F12:: ; F12 switches to 3CX and readies it for number entry (if on number page) | ||
|
||
3CXFocus() | ||
|
||
return | ||
|
||
F11:: ; copy text in active window and paste into 3CX | ||
|
||
SendInput, {End}+{Home}^c | ||
|
||
Sleep, 500 | ||
|
||
3CXFocus(1) | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,50 @@ | ||
^!\:: ; ctrl+alt+\ switches to 3CX and readies it for number entry (if on number page) | ||
#SingleInstance, force | ||
|
||
if WinExist("ahk_exe 3CXWin8Phone.exe") | ||
3CXFocus(paste:=0) | ||
{ | ||
winid := WinExist("ahk_exe 3CXWin8Phone.exe") | ||
} | ||
if WinExist("ahk_exe 3CXWin8Phone.exe") | ||
{ | ||
winid := WinExist("ahk_exe 3CXWin8Phone.exe") | ||
} | ||
|
||
if winid | ||
{ | ||
WinActivate | ||
WinActivate | ||
WinWaitActive, , , 1 | ||
If ErrorLevel | ||
if winid | ||
{ | ||
MsgBox, 8208, Error, WinWaitActive Timed Out, cancelling | ||
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 | ||
} | ||
} 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 | ||
|
||
if paste | ||
{ | ||
SendInput, ^v | ||
} | ||
|
||
return | ||
} | ||
|
||
Click, 225, 95 ; clicks in textbox | ||
SendInput, ^a{Delete} ; selects all and clears text | ||
#SingleInstance, force | ||
|
||
^!\:: ; ctrl+alt+\ switches to 3CX and readies it for number entry (if on number page) | ||
|
||
3CXFocus() | ||
|
||
return | ||
|
||
F11:: ; copy text in active window and paste into 3CX | ||
|
||
SendInput, {End}+{Home}^c | ||
|
||
Sleep, 500 | ||
|
||
3CXFocus(1) | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters