Desktop Analogue Alarm Clock

Community Forums/Showcase/Desktop Analogue Alarm Clock

Kevin_(Posted 2005) [#1]


This is a very early demo of something I have just started to work on in BlitzPlus. If you want something other than that boring digital thing on your task bar, then you might like this.

Features....

1) Dragable around your desktop.
2) Anti alias hands including second hand.
3) Alarm function with real alarm clock sound.
4) Clock 'vibrates' on your desktop when alarm activates.
5) Date function on clock face showing the day of the week.


------------------------------------------------------
[UPDATE 14/08/05] v0.1.1 released - small fixes.

Fixed: Second hand now moves when alarm is activated.
Fixed: Second hand now moves when options window is viewed.
Fixed: Alarm stops at the correct time (1 min after alarm time).
------------------------------------------------------
[UPDATE 07/09/05] v0.2 released

Removed: Task from the task bar
Removed: Escape key to quit
Added: Popup Menu with options (About, Set Alarm, Exit)
------------------------------------------------------
[UPDATE 19/11/05] No Longer Supported

Unfortunately, this product is no longer supported. The reason being is the lack of support for BlitzPlus and the
rediculous decisions made by the moderators to lock threads
for no apparent reason. I am no longer a member of the Blitz 'for kids' Community.


Sarge(Posted 2005) [#2]
Look's good, fits perfect on my desktop too.


JoeRetro(Posted 2005) [#3]
Nice job! Works great on my desktop.

Did you use BlitzMax for this project?


Kevin_(Posted 2005) [#4]
Sorry, I didn't mention it (have now). It was done in BlitzPlus with some WinAPI function calls.


ImaginaryHuman(Posted 2005) [#5]
He said blitzplus


Kevin_(Posted 2005) [#6]
I've found a bug.

[EDIT] No I haven't. It was soemthing else, sorry.


rod54(Posted 2005) [#7]
Nice.... Is it psosible to give some code examples of what it took to do this ...


Kevin_(Posted 2005) [#8]
I'll post the complete code for it when I've finished it. I'm going to add a calendar to it as well (when I get around to it).


rod54(Posted 2005) [#9]
Appreciate your willingness to share with the community,


CodeD(Posted 2005) [#10]
cool, i need an alarm clock


Neuro(Posted 2005) [#11]
Pretty cool. You should have it as a tray icon when running...


Kevin_(Posted 2005) [#12]
You should have it as a tray icon when running

Yes, I know. It would be better but I don't think there is an API function call to do it. I've been through them all at msdn and couldn't find a solution.

If anyone knows how to do this with an API function call (not a .dll) then please post your findings here and I'll include it in the next update. Thanks.


Red Ocktober(Posted 2005) [#13]
there is... at least i think there is...

it's been a while, but i remember doing something for a thread that was running in the background for a scanning app... it kept the count and percentage displayed on the tray while the pages were scanned...

... but it's been a while, so i'm not gonna be of any help to you, unless i happen to stumble upon the code or suddenly have a flashback or something...

--Mike


Neuro(Posted 2005) [#14]
Perhaps you can link it with some .NET code and force it in the tray icon? But then again you'll have to DLL it...


Kevin_(Posted 2005) [#15]
Thanks Red, any help here would be appreciated.
Neuro, I really want to avoid using a .dll if I can because I like to have everything on one executable file. I'll do some more research tomorrow....


Red Ocktober(Posted 2005) [#16]
i think it was in 2001 that i wrote up that thing... but i do remember using Dan Appleman's Win32API book a lot when i was doing it...

ahh yes... Shell_NotifyIcon, i still got the book here, and this must be it... it's underlined...

ok... take a look here for an example in c, and look here for an example in VB on how to add a tray icon...

those should get you goin...

--Mike


Kevin_(Posted 2005) [#17]
Thanks Red...
I've just been studying some other VB code and there are a few functions needed.

http://support.microsoft.com/?scid=176085

I'll pick it to bits tomorrow....


Kevin_(Posted 2005) [#18]
Just added an update (v0.2). Read the first post for more info.


JoeRetro(Posted 2005) [#19]
How's the clock coming along Prof? Got anything new for us to play with :)


Kevin_(Posted 2005) [#20]
Sorry, havent been on it for quite a while. Been building MAME cabinets to sell. I havent even started the calendar database because I've had no time.

I'll do something this weekend. I think that the alarm is a bit 'weedy' so I might include a better sample for it.


JBR(Posted 2005) [#21]
Hi Prof, excellent clock, have it in my startup folder.

It always starts in the middle of the screen though.
Any easy way to make it start in the top right?

Thanks
Marg


Kevin_(Posted 2005) [#22]
Any easy way to make it start in the top right?

Funny you should say that because thats where I usually put it as well :)