Code : Tout sélectionner
While ProcessExists($pid)
$line = StdoutRead($pid)
If @error Or $abort Then ExitLoop
$aP = StringRegExp($line, "(?U).*(\d+)\%", 3)
If IsArray($aP) And $po <> $aP[0] Then
GUICtrlSetData($idProgressbar, $aP[0])
$po = $aP[0]
$sek = Int(TimerDiff($t) / 1000)
$td = Sec_2_Time_Format($sek)
WinSetTitle($hGUI, "", $title & " - Created: " & $po & " % / Elapsed: " & $td)
;EndIf
If GUIGetMsg() = $idButton_Abort Or TimerDiff($t) > $dt Then $abort = True
Sleep(30)
WEndCordialement.

