JASET

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

JASET

Post by netmaestro »

Just Another Stupid Egg Timer

http://www.networkmaestro.com/QuickTimer.exe

Enjoy!
BERESHEIT
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Nice...the alarm will make you deaf if your wearing headphones - but nice none the less :)

Thank you :)
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

cool 8)
Image Image
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Nice. I'd suggest making the time text background an opaque white colour, since it's not possible to see the text when it's over a white window background.
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 »

Yes, good point. I'm going to fix that today, also I want to lower the tick volume and find a better ring. That one is irritating, it's just the first free alarm sound I came across.
BERESHEIT
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Make it sort of like an alarm clock, when it goes off it plays an internet radio station...;)

Really tho, add a capability to play a user selected .mp3 file for the alarm? That would be fun.
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 »

It's fixed up a bit:

- digital readout is always readable regardless of background

- paused state alpha is a bit higher for better visibility

- made a much better icon for the program

The digits being readable was an interesting problem. Text drawn to an alphablended window is always like that, regardless of how it's rendered. I thought I could solve it by creating an image, drawing the text on that, and then drawing the image on the background before it's used to update the layered window, but no dice. It gets rendered the same either way. The other option would be to update the layered window ULW_COLORKEY instead of ULW_ALPHA, which solves the problem but leaves the edges not alphablended. As every edge is curved, that looked awful. So - get out the hack toolbox...
BERESHEIT
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:

I noticed from using this that after setting the timer with the arrow keys, the most natural thing to do next is hit the return key to start it. So I added this. Also, now that there are two ways to start the timer, it seemed a good idea to disable ticking for one of them. Hence, if you start the timer with a double-click, it will tick, but if you hit enter it will be quiet until it rings.
BERESHEIT
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

My egg timer looks just like this and all I do is drag the end of the pointer round... trust the computer version to be more complictated. :D :D :D
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 might try to implement that, it doesn't seem like it would be too easy though.
BERESHEIT
Post Reply