Subversion Repositories Actemium.ccr-dmv

Rev

Blame | Last modification | View Log | Download

;
; AutoIt Version: 3.0
; Language:       English
; Platform:       WinXP/2003/Vista
; Author:         Marcel Jordaan (mjordaan@rldautomation.eu)
;
; Script Function:
; Monitor calling task for crashing/exiting
#NoTrayIcon

if $CMDLINE[0] = 0 then Exit

while 1

  ;mantain loop during flweb active
  sleep( 100)
  if ProcessExists($CMDLINE[1]) then ContinueLoop

  ;if FileExists(@WorkingDir & "\ExitMethod.flg") Then
    ;MsgBox(0,0,"Exited via normal method")
  ;FileDelete(@WorkingDir & "\ExitMethod.flg")
  ;Else
    ;MsgBox(0,0,"Force closed or crashed")
  ;EndIf

  ;flweb has ended, stop our graph.exe
  ProcessClose( $CMDLINE[2])
  Exit
WEnd