Code: Select all
; Ctrl + F3 ⇒ Run HIDMacros
^F3::
Run C:\apps\HidMacros_21\HIDMacros.exe
return
; Ctrl + Shift + F3 ⇒ Close HIDMacros
+^F3::
process=HIDMacros.exe
Process, Exist, %process%
if pid := ErrorLevel
{
Loop
{
WinClose, ahk_pid %pid%, , 5 ; will wait 5 sec for window to close
if ErrorLevel ; if it doesn't close
Process, Close, %pid% ; force it
Process, Exist, %process%
} Until !pid := ErrorLevel
}
return
Any idea what might have happened?
(gonna cry now after losing all my awesome macros... )
Cheers,