Transparent Clock

Developed or developing a new product in PureBasic? Tell the world about it.
Pureabc
User
User
Posts: 76
Joined: Mon Jan 16, 2006 1:11 am

Windows 2000

Post by Pureabc »

I have windows 2000 and the clock is not showing.

The clock icon showed in the system tray, but no image on the desktop.

Anybody has this problem?

:?: :?:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

The clock requires gdiplus.dll, which is not included in Windows 2000. It is redistributable, so you should have no trouble finding it.

Here's a link where you can get it:

http://www.dlldump.com/download-dll-fil ... nload.html

Just drop it in your \Windows\System32 folder and the clock should work fine.
Last edited by netmaestro on Thu Nov 02, 2006 5:53 pm, edited 1 time in total.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Update: There is a new pair of menu items, "Remember Settings" and "Forget Settings". If you select "Remember Settings", all the customizable settings for the clock will be saved and the clock will start with Windows with these settings applied. "Forget Settings" will cause the program to forget the settings for the clock. You can save one set of settings for as many clocks at once as you like, as long as they are all set to different city names. One of the clocks can have an empty city name. One thing to note: if you have a clock set as say, "Sydney", and you have saved settings for it, if you then change the city name or offset to something else, your settings for clock "Sydney" will be automatically forgotten (you will get a messsagebox telling you this). This is to prevent no-longer-existing clocks from being remembered.

You can check the registry key HKEY_CURRENT_USER\"Software\Microsoft\Windows\CurrentVersion\Run" to see the list of remembered clocks.

People using this feature, please give it a workout and see if I've missed anything, I tested quite a bit but you never know. Thanks!
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Netmaestro

Something happened with the Enable Stay on Top with this upgrade as it's not working?
Although I haven't restarted yet, the rest seems to work okay.

Thank you very much for your excellent clock.
yrreti

PS: I like your frog too :wink:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Sorry! Fixed now.
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Wow your fast :!:

Thanks,
yrreti
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I had an inquiry from a W2000 user who couldn't run the clock. I originally thought it was caused by the lack of gdiplus.dll, however it turns out that the timeSetEvent_() API I'm using is not supported in W2000. So I rewrote the timing routine to use functions that should be supported in W2000, taking care to ensure that CPU usage doesn't go up. I think I have it, could people who have access to W2000 please test? Link is in first post. Thanks!
Finjogi
New User
New User
Posts: 4
Joined: Tue Oct 03, 2006 10:38 am

Post by Finjogi »

w2000 version works fine on my w2000 :)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Good to hear. Does it use any CPU?
Finjogi
New User
New User
Posts: 4
Joined: Tue Oct 03, 2006 10:38 am

Post by Finjogi »

Not too much, about 3% at most. 0-4% without clock, 0-7% with clock.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You need to open your taskmanager to the process list and see what's showing on the TransparentClock line item.
Pureabc
User
User
Posts: 76
Joined: Mon Jan 16, 2006 1:11 am

win2000

Post by Pureabc »

Win2000 version works!

And taskmanager reports of 0% usage on the TransparentClock line item.

Great looking clock. Thanks.

:D
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hello netmaestro,

on my xp sp2 - amd athlon xp 2800+

i get about between 0 and 5%

but if i zoom the clock at the maximum, i get 31%.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

@Flype: Thanks for the feedback, could I ask you for a favor? If you're getting CPU usage, could you download both versions of TransparentClock and compare to see if one uses less? They both use different timing mechanisms. I appreciate any help you can give me on this as I can't test myself. I get 0% usage for both.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

no problem.


but sorry it's exactly the same for both progs.

but the w2000 version as you can verify on the screenshot is less memory consuming (about 500kb saved).

Image
Last edited by Flype on Fri Nov 03, 2006 11:34 pm, edited 1 time in total.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply