Transparent Clock sourcecode

Share your advanced PureBasic knowledge/code with the community.
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

I know this thread is old, but this product is very interesting:

http://www.4neurons.com/Clock/
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
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 »

hmmpf. Twice the size and half the features. And it costs money :roll:
BERESHEIT
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

$14.95? hehehe Made by you Amundo? Hehehe

I'll stick with netmaestro's great clock ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

No!

I was half wondering if netmaestro's work had been plagiarised(?) when I saw the name...
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Can't get gadget to work...
NOW CAN...

I had to read the entire thing. NetMaestro I think I learned more from that bit of coding than my perusal of the entire PB manual... :D
Last edited by Rook Zimbabwe on Mon Jun 18, 2007 5:15 am, edited 1 time in total.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Strange little bug (although it might just be on my system), I ran this program and everything worked fine, now every program I write or load that opens a window uses the little clock icon in the notification area at the bottom of the screen, I assume that it is a registry problem as I'm not using any icons in the compiler options. I'm running PB4.10b2 incase that is the problem.

Anyone else getting this problem?

Edit. Just searched the registry and the clock24.ico isn't in there so must be something else??
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Just did a fresh install back to 4.02 and the problem was gone so downloaded the beta2 and installed it and the sys icon is back to the clock again. Have no idea where it is coming from as I have deleted the icon off the computer. Looking through Netmaestro's code I can't see any reason why the icon would be saved anywhere anyway.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Just tried on another computer and the same thing happens.

Run Netmaestro's program and select to resize the clock, exit the program and run anything that opens a window

Code: Select all

openwindow(0,0,0,800,600,"",$ca0001)
repeat
until waitwindowevent()=16
and look at the icon in the notification bar at the bottom.

I'm not saying Netmaestro's code is wrong, I'm saying there is a bug with PB4.10b2 somewhere.
Little John
Addict
Addict
Posts: 4791
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

Hello netmaestro,

thanks a lot for this nice program!

I also tested your compiled program "transparentclock.exe" from your
website, which looks even more amazing! I like it very much! The
compiled EXE program seems to have a small glitch, though. When it has
saved its settings to the registry, it doesn't re-read them at the next
start. I think it also should be possible to start the program with the
settings passed as command-line parameter, e.g.:

Code: Select all

transparentclock.exe Berlin,0,300,400,200,1,1,1
This is possible with the program that you provided here as source code,
but not with the compiled EXE program from your website. But I'd prefer
to use that program, because it looks soooooooo good!

Another suggestion for improvement:
The program is made in a way, so that multiple instances can be called
in order to show times of different locations on earth. Very cool,
exactly what I need.
But when I'd have clocks which show me the time of say Paris, New York,
Tokio, and Sydney, it is impossible for me to remember by mind what
time is before noon and what time is after noon. So it would be very
useful if the program would additionally display a.m. or p.m.,
respectively.
I think then the program would be "commercial quality", and I'm actually
willing to pay money for it.

Regards, Little John
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 »

How much money? For example, if the original images, source and all rights to the intellectual property were on the table, what would you pay?
BERESHEIT
Little John
Addict
Addict
Posts: 4791
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

netmaestro wrote:How much money? For example, if the original images, source and all rights to the intellectual property were on the table, what would you pay?
I don't know. I never have bought all those rights of a product that you mentioned, so I don't have any experience with this.
I'd only like to buy a license that allows me to use 1 copy of the program (modified as suggested) on my PC. Probably sooner or later I'd like to buy some more licenses, in order to give them to friends as a birthday present or so. To me personally, for a license to use the program unlimited in time, about 10 to 15 EUR would be appropriate.

Regards, Little John
myutopia
User
User
Posts: 91
Joined: Sat Jul 04, 2009 1:29 am

Source code?

Post by myutopia »

Hi all :)

Any chance of reviving this? I'm interested in learning about skinning and creating a clock. I can't download the source unfortunately :(
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 »

Please accept my apologies. Link is fixed now.
BERESHEIT
myutopia
User
User
Posts: 91
Joined: Sat Jul 04, 2009 1:29 am

Post by myutopia »

Are you kidding? :P No apologies necessary!

Wow... this is beautiful! And exactly what I was looking for. Thanks!
ruland
New User
New User
Posts: 3
Joined: Sun Sep 04, 2011 7:23 am

Re:

Post by ruland »

netmaestro wrote:Please accept my apologies. Link is fixed now.
Hi,

two years later, I have to ask again. I just entered the fascinating world of PB and would like to see this famous piece of code :)
Could you fix the link, please?

Thanks.
Post Reply