From 519c76e4a4450d4a526066ecb3a7e5645cf34b04 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 4 Feb 2020 16:46:29 +0000 Subject: Improve NEC hotkeys --- ahk-assistant.ahk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ahk-assistant.ahk') 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 -- cgit v1.2.3