#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
$ProgramCount = 5 ; The ammount of programs you're gonna open
GUICreate("RunWait Progress Bar", 220, 100, 100, 200, 0, $WS_EX_TOPMOST) ; Create GUI
GUISetState(@SW_SHOW) ; Show it
$ProgressBar = GUICtrlCreateProgress(10, 10, 200, 20) ; Create Bar
GUICtrlSetData($ProgressBar, 0) ; Set your Progress Bar to 0% completed
RunWait("Notepad.exe", @WindowsDir, @SW_MAXIMIZE) ; Run first process
GUICtrlSetData($ProgressBar, GUICtrlRead($ProgressBar) + (100 / $ProgramCount)) ; Add 20% to the bar
RunWait("Explorer.exe", @WindowsDir, @SW_MAXIMIZE) ; Run second process
GUICtrlSetData($ProgressBar, GUICtrlRead($ProgressBar) + (100 / $ProgramCount)) ; Add 20% to the bar
RunWait("A.exe", @WindowsDir, @SW_MAXIMIZE) ; Run third process
GUICtrlSetData($ProgressBar, GUICtrlRead($ProgressBar) + (100 / $ProgramCount)) ; Add 20% to the bar
RunWait("B.exe", @WindowsDir, @SW_MAXIMIZE) ; Run fourth process
GUICtrlSetData($ProgressBar, GUICtrlRead($ProgressBar) + (100 / $ProgramCount)) ; Add 20% to the bar
RunWait("C.exe", @WindowsDir, @SW_MAXIMIZE) ; Run fifth process
GUICtrlSetData($ProgressBar, GUICtrlRead($ProgressBar) + (100 / $ProgramCount)) ; Add 20% to the bar