WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stevengraff on May 13, 2014, 09:17:17 AM

Title: Time granularity in Display vs. TimeDelay
Post by: stevengraff on May 13, 2014, 09:17:17 AM
TimeDelay respects time < 1 second... is there any setting that will permit the same with Display?
Title: Re: Time granularity in Display vs. TimeDelay
Post by: Deana on May 13, 2014, 10:20:15 AM
Display() function doesn't seem to accept fractional seconds. You would need to use another method to display a message to the screen like the BoxOpen/BoxShut and TimeDelay Functions.

Code (winbatch) Select
begintime=GetTickCount()
;Display(-0.5,'title', 'text')
BoxOpen('title', 'text')
TimeDelay(0.5)
BoxShut()
endtime=GetTickCount()

timeinseconds=(endtime-begintime)/1000.0
Message("Time",timeinseconds)

Title: Re: Time granularity in Display vs. TimeDelay
Post by: stevengraff on May 15, 2014, 05:28:24 AM
Thanks Deana. I ended up re-working my script so that I'd be able to use Jim's status control in my (now dynamic) dialog.