Is there any limits on how fast a alias can be triggered with a timer? I testing to use a timer, but i cant to be able to use speeds like 500 down to 100. But there is no difference even if i change the value down to 5.
timermoo -m 0 5 fill_bar
I using the timer to fill a progressbar, but depending on what i will use the progressbar to i want to change the speed of it, a big dialog take longer time, and a small one takes less time. Or do someone have any bether idea on the code i using for now?
alias fill_bar {
inc %x
xdid -v progressbar 1 %x
if (%progressbar) { xdid -i progressbar 1 %progressbar }
if (%x >= 100) {
.timermoo off
xdid -i progressbar 1 Completed ...
unset %x , %progressbar
.timer -m 1 500 dialog -x progressbar progressbar
.timer -m 1 500 check-started
}
}
check-started is used to launch the dialog that should open.
alias check-started {
if (%plaunch == theme) { unset %plaunch , %progresstime | if (!$dialog(theme)) { dialog -m theme theme } }
}