Would like for my script to not stop eachother progress bars
i.e pressing 1 then 2 doesn't stop progress bar 1
Any help is very appreciated
Code: Select all
1::MyProgress(7600, 200)
2::MyProgress(4300, 250)
MyProgress(seconds, pos){
static tick,sec,step
key:=A_ThisHotKey ":"
tick:=A_TickCount, sec:=seconds, step:=1000/sec
Progress, % key "b" "R0-" 1000 "y" pos "cb800080"
SetTimer,Update,10
Return
Update:
If (sec<A_TickCount-tick)
SetTimer,Update,Off
Progress, % A_ThisHotKey ":" (A_TickCount-tick)*step
Return
}
ESC::ExitApp