What I want is a progress bar that simply says how many apps are left and the name of the current function being run.
For the sake of clarity here is what it comes down too:
Code: Select all
;; Launcher App ;;
;; Includes necessairy function files, this is normally donne with a config file that includes all the functions ;;
#include test_message1.ahk
#include test_message2.ahk
#include test_message3.ahk
#include ProgressBar.ahk
ProgressBar(3)
test_message1()
test_message2()
test_message3()
ExitApp
Code: Select all
testmsg1(){
Global
AppName = "Basic Message Box 1" ; declares name so that i can be specified in the ProgressBar
Msgbox, , test1, test1, 3
}
Code: Select all
ProgressBar(FuncNum){
Loop
{
x:= 100 / FuncNum
y:= x * A_Index
z:= FuncNum - A_Index
ProgressBar,,Number of Apps left: %z%, %AppName%
Progress, %y%
If A_Index=%FuncNum%
Break
}
Progress, Off
}
What I want is for the Progression bar to be visible while the functions are launching and to close when they are done.
Ideally this would work with a WinWait where the progressbar loop waits for the next function to end then loops. Any idea how I can make this happen?
It is very much a work in progress, any advice would be a huge help, thanks in advance!