Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

is there a way to change the flow of a script

$
0
0
i have the following code.



; 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?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>