i have the following code.
wend
selectformcheditB.exe sets off a series of other scripts where mchupdauto is the last one execute.
this script sets the while loop waiting for that event.
many times things go wrong before mchupdauto gets executed
i can use the hotkey to send it the pauseit function.
is there a way in the pauseit function or an external script to direct this script (selectforaddp2)
to return to the begining of its while loop and hence execute selectformcheditB.exe?
; script selectforaddp2 hotkeyset("^ab", "pauseit") while 1 $sencmd = '"p:\mchprocess\selectformcheditB.exe"' $retcode = runwait($sencmd) if $retcode = 8 Then msgbox(0,"","User " & $personid & " not for processing") ContinueLoop endif if $retcode = 7 Then ; msgbox(0,"","User " & $personid & " not for processing") ContinueLoop endif sleep(600) while 1 $PID = ProcessExists("mchupdauto.exe") ; hold till mchupdauto start executing If $PID Then exitloop EndIf sleep(2000) wend func pauseit() msgbox(0,"","Select for Add is paused") endfunc
wend
selectformcheditB.exe sets off a series of other scripts where mchupdauto is the last one execute.
this script sets the while loop waiting for that event.
many times things go wrong before mchupdauto gets executed
i can use the hotkey to send it the pauseit function.
is there a way in the pauseit function or an external script to direct this script (selectforaddp2)
to return to the begining of its while loop and hence execute selectformcheditB.exe?