Here is an example, I want them to work as they do now (restarting themselves when i press the same key), but I don't want them to stop/delay eachother.
i.e pressing 2doesn't stop 1 etc.
Code: Select all
Gui, Main: New
Gui, Main: Show, w450 h450
Gui, 1: +parentMain
Gui, 1: Color, c292929
Gui, 1: Add, Progress, x0 y0 w300 h20 cGreen +Border vGreen
Gui, 1: Show, x5 y5 w300 h20
Gui, 2: +parentMain
Gui, 2: Color, c292929
Gui, 2: Add, Progress, x0 y0 w300 h20 cBlue +Border vBlue
Gui, 2: Show, x5 y50 w300 h20
Gui, 3: +parentMain
Gui, 3: Color, c292929
Gui, 3: Add, Progress, x0 y0 w300 h20 cBlack +Border vBlack
Gui, 3: Show, x5 y95 w300 h20
Return
1::
GuiControl, 1:, Green, 0
KeyWait, 1
Loop 100
{
GuiControl, 1:, Green, +1
KeyWait, 1, D T0
If (!ErrorLevel)
GoTo, 1
Sleep, 1
}
GuiControl, 1:, Green, 0
Return
2::
GuiControl, 2:, Blue, 0
KeyWait, 2
Loop 100
{
GuiControl, 2:, Blue, +1
KeyWait, 2, D T0
If (!ErrorLevel)
Goto, 2
Sleep, 1
}
GuiControl, 2:, Blue, 0
Return
3::
GuiControl, 3:, Black, 0
KeyWait, 3
Loop 100
{
GuiControl, 3:, Black, +1
KeyWait, 3, D T0
If (!ErrorLevel)
Goto, 3
Sleep, 1
}
GuiControl, 3:, Black, 0
Return
ESC::ExitApp