diff options
author | Peter | 2020-02-04 16:46:29 +0000 |
---|---|---|
committer | Peter | 2020-02-04 16:46:29 +0000 |
commit | 519c76e4a4450d4a526066ecb3a7e5645cf34b04 (patch) | |
tree | 63d82874ed0f7ab494ea79a3746caaba3d4d3384 | |
parent | 4b8f6594ee6dcbe15e6c612f84a2a75c6f0bf7c3 (diff) | |
download | ahka-519c76e4a4450d4a526066ecb3a7e5645cf34b04.tar.gz ahka-519c76e4a4450d4a526066ecb3a7e5645cf34b04.tar.bz2 ahka-519c76e4a4450d4a526066ecb3a7e5645cf34b04.zip |
Improve NEC hotkeys
-rw-r--r-- | ahk-assistant.ahk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index 92488cf..a0f60f8 100644 --- a/ahk-assistant.ahk +++ b/ahk-assistant.ahk @@ -105,7 +105,7 @@ Insert::appendClipboard() !Up::Send {Backspace}
#IfWinActive
-#IfWinActive ahk_exe AppMgrEX.exe ; NEC SV9100 programming tool
+#If WinActive("ahk_exe AppMgrEX.exe") or WinActive("ahk_exe AppMgr.exe") ; NEC programming tools
global necUsername
global necPassword
global necPort
@@ -113,9 +113,11 @@ Insert::appendClipboard() Send tech{Tab}12345678{Enter}
Return
:*?:__cred::
- Send {CtrlDown}v{CtrlUp}{Tab}{Enter}{Tab}%necPort%{Tab 2}{Enter}{Tab}%necUsername%{tab}%necPassword%
+ Send {CtrlDown}v{CtrlUp}{Tab}{Enter}{Tab}%necPort%{Tab 2}{Enter}{Tab}%necUsername%{Tab}%necPassword%{Tab}{Enter}{Sleep 750}{Enter}
+ Sleep, 3000
+ Msgbox, Don't forget to download!
Return
-#IfWinActive
+#If
#IfWinActive ahk_class SciCalc ; windows xp calc
CapsLock::Send !{F4} ; quit
|