_ProgressBarDestroy

Destroys progress bar GUI after some waiting (to show completion)

#include "Dialogue.au3"
_ProgressBarDestroy( [ $iWaitFor = 1000 ] )

parameters

$iWaitFor Milliseconds to show completion

return value

boolean value True = Progress bar destroyed, False = Progress bar inactive (not created)

related

_ProgressBarType, _ProgressBarCreate, _ProgressBarActive, _ProgressBarSet, _ProgressBarAdd, _ProgressBarGet, _ProgressBarFull, _ProgressBarEmpty

example

While 1
   $aMsg = GUIGetMsg(1)
   If _ProgressBarActive() Then ; check if progress bar is on screen
      _ProgressBarAdd(0.2)
      If _ProgressBarFull() Then ; when progress bar is 100% perform some actions
         _ProgressBarDestroy(500) ; show 100% for 0.5 sec then destroy
         _ProgressBarType(0) ; reset to default Windows progress bar (don't do this during a progress bar run)
      EndIf
   EndIf
   If $aMsg[0] = 0 Then ContinueLoop ; loop if there isn't an user interaction
; rest of GUI loop

See library example how to implement a progress bar.