Macro progress/status window

Functions, classes, components, etc. Only high quality content.

Macro progress/status window

Postby Gintaras on Fri Feb 04, 2011 2:42 pm

Macro MacroProgressWindow help     ?
;Creates small window that displays macro name, time and user-defined text.
;Closes the window when macro ends.

;EXAMPLE

#compile "__MacroProgressWindow"
MacroProgressWindow x.Create(1 -1 -1 170 70)
x.SetText("macro[]info")
3
x.SetText("updated info" 0x0000ff)
3


keywords: dialog
Attachments
MacroProgressWindow.png
MacroProgressWindow.png (5.94 KiB) Viewed 2346 times
MacroProgressWindow.qml
(7 KiB) Downloaded 438 times
Gintaras
Site Admin
 
Posts: 10328
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania

Re: Macro progress/status window

Postby ssimop on Thu Sep 22, 2016 10:58 am

Very nice routine. However if one increases the holding time from 3 sec, as in the above example, to something more than 4 min, then when at 3:34:00 it starts counting down. I am investigating this case. Any advice is welcome.
User avatar
ssimop
Active Member
 
Posts: 898
Joined: Sun Oct 21, 2007 1:55 pm
Location: Greece

Re: Macro progress/status window

Postby Gintaras on Thu Sep 22, 2016 11:51 am

Bug:
timeGetTime-t_time+100*10000 expression type is int, and it overflows.

in MPW_WndProc replace

str s=TimeSpanToStr(timeGetTime-t_time+100*10000)

to

str s=TimeSpanToStr(timeGetTime-t_time+100*10000L)
Gintaras
Site Admin
 
Posts: 10328
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania


Return to QM Extensions

Who is online

Users browsing this forum: No registered users and 1 guest