本帖最后由 renren 于 2011-2-13 14:31 编辑
回复 15# dearmb
看的比什么还长,只看了`那个子进程的 改了下`
Case $GUI_EVENT_CLOSE
$aChild = _WinAPI_EnumChildProcess(@AutoItPID)
;~ MsgBox(0,"",$aChild[0][0])
If @error Then
ProcessClose("fastcopy131.exe")
ProcessClose("fastcopy132.exe")
ProcessClose("fastcopy133.exe")
ProcessClose("fastcopy134.exe")
ProcessClose("fastcopy135.exe")
ProcessClose("fastcopy136.exe")
ProcessClose("fastcopy165.exe")
ProcessClose("fastcopy180.exe")
ProcessClose("fastcopy181.exe")
ProcessClose("fastcopy182.exe")
ProcessClose("fastcopy186.exe")
ProcessClose("fastcopy187.exe")
ProcessClose("fastcopy188.exe")
ProcessClose("fastcopy189.exe")
ProcessClose("fastcopyUserDefined.exe")
Exit
Else
If $aChild[0][0] <> 0 Then
For $i = 1 To $aChild[0][0]
ProcessClose($aChild[$i][0])
Next
ProcessClose("fastcopy131.exe")
ProcessClose("fastcopy132.exe")
ProcessClose("fastcopy133.exe")
ProcessClose("fastcopy134.exe")
ProcessClose("fastcopy135.exe")
ProcessClose("fastcopy136.exe")
ProcessClose("fastcopy165.exe")
ProcessClose("fastcopy180.exe")
ProcessClose("fastcopy181.exe")
ProcessClose("fastcopy182.exe")
ProcessClose("fastcopy186.exe")
ProcessClose("fastcopy187.exe")
ProcessClose("fastcopy188.exe")
ProcessClose("fastcopy189.exe")
ProcessClose("fastcopyUserDefined.exe")
EndIf
Exit
EndIf
|