Hello!
I run a script that has a running time of more than a few seconds and i was thinking to add a progress bar.
It is possible to run the script via fileIn "myscript.ms" with progress bar?
rollout test "Testing" width:300 height:100
(
button btn "Run!"
progressbar pbar height:30 color:orange
label lbl1 ""
on btn pressed do
(
start = timeStamp()
try (filein "myScript.ms") catch(messagebox "Error" beep:false)
pbar.value = --> -------------------------------- what should i do here?!?!?
if pbar.value > 99 do (pbar.value=0)
completeredraw()
end = timeStamp()
lbl1.caption = " Done in " + (formattedPrint ((end - start) / 10)) + " sec"
)
)
createDialog test
3dwannab · 2017-07-18
miauu · 2017-07-18