I added a few debug lines. It doesn't seem to be an issue with events but rather with the active button label, it just doesn't get refreshed anymore. This doesn't happen right away when the bar is first shown. It happens after several minutes. When I bar.hide then bar.show the bar again, the button label is updated.
--- In [email protected], "acs322000" <[EMAIL PROTECTED]> wrote: > > On this PC where I'm testing version 4.7c I noticed an issue with > event time. The script below updates an active button id=clock's > label once a minute. While that's worked flawlessly up to version 4.7 > included, with version 4.7c, it shows considerably slower times > compared to the system clock, after a few hours powerpro uptime. Has > anyone noticed something similar? My powerpro 4.7c runs with the > default new performance setting. > > ; ----------------------------------------------- > ;: @Clock - update Clock display once a minute > ; ----------------------------------------------- > @Clock > static evClock > global _lastError_ > if (! event.exists(evClock) ) > evClock=event.create(60,0,cb("@Clock")) > local t=formatdate(gvMyConf["formatdate"],date)++" "++;;+ > formattime(gvMyConf["formattime"],time) > t[?"(?#g)\s*off\s*"]="" > exec onerror clear //unsafe to set _lastError_ in event thread but.. > hMyActiveBar.setlabel("clock",ifelse(gvMyConf["layout"]!="left",t,"")) > if ("" != _lastError_) > evClock = event.destroy(evClock) > quit(t) >
