ExitApp when the user closes the progress bar
Posted: 28 Apr 2019, 05:13
I use a progress bar for my script with the option „M2“ so the progress bar window has a set of the 3 typical buttons, that is minimize, maximize and close, in the title bar.
When the user presses the close button of the progress title bar the script shall terminate (= ExitApp).
What I tried so far was using a loop with the IfWinNotExist command. This way the script terminates when the progress bar is closed but then the rest of the script is not executed because of the loop .
So apart from my approach, do you guys have an idea how I can do this with autohotkey?
When the user presses the close button of the progress title bar the script shall terminate (= ExitApp).
What I tried so far was using a loop with the IfWinNotExist command. This way the script terminates when the progress bar is closed but then the rest of the script is not executed because of the loop .
So apart from my approach, do you guys have an idea how I can do this with autohotkey?