Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 15th, 2005, 11:55 PM   #1
RaceGT
Newbie
 
Join Date: Aug 2005
Location: New England
Posts: 6
Rep Power: 0 RaceGT is on a distinguished road
The screensaver that never existed

Here is my idea for a project that I've never seen since screensavers existed. Not that I've seen, mind you:

A screensaver that gradually and smoothly (like a movie fade) fades the screen to black over a user-set period of time. So you get 2 controls automatically, the Windows set screensaver time, which says when the screensaver will kick in, then the screensaver-built time, which defines how long the fade will take. But it needs special operation, too: moving the mouse does NOT deactivate the screensaver, in fact, you can still control the programs underneath. This is so that there is no re-waiting for the fade if you happen to need to adjust something in a program that is still running, if the fade has not gotten too dark to do so. Of course, there would be the times you'd need to actually deactivate the fade-screensaver, and this is accomplished by recognizing keystrokes or password, but mouse activity is ignored (or it could be settable to act as a normal screensaver).

I think this is a challenge because the program needs to be 'always on top' (for the visual effect desired), but 'not always on top' because of the special operation I'm looking for with regards to the mouse.

I've never seen a screensaver that does this, let alone anything of quality. If you do a seach for "screensaver" and "fade", all you get is all the screensaver packages that let you fade an image from one to another....you'll never find one that actually fades the screen. At least I couldn't in a couple hours of searching one night.

If you really wanted to get fancy with it, another configuration option could be to control the fade with a user-defineable curve instead of just plain linear. Like say the saver starts at 0% fade, by 50% of the time defined it reaches 30% fade, at 70% time=50% fade, etc. You could define it how you wanted it to fade.

I couldn't think of a way to overlay a transparent screen that would fade smoothly (even if it's just showing a black picture), that is also transparent to the mouse while still being above any other programs (to achieve the visual effect). I'd bet for anyone very familiar with graphics and screens, it could be a simple task. I know I can't do it with what tools I have, but does anyone think they could accomplish a simple project for practice?
RaceGT is offline   Reply With Quote
Old Aug 16th, 2005, 12:04 AM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
The reason you can't find this on google is because it's not what people would want. Why would someone need this?

But never the less, it would take some C++ and (yes as I said last time), probably Win32API programming. Technically, the screen saver would really be a program that runs in the background of your computer waiting for a lack of keystrokes for a period of time. Then once it notices you are gone it would have to actually change all the colors of everything on the screen to a slightly darker pitch. Which would take a lot of manipulating of windows controls.

The easier but less authentic way would be by spreading black pixels evenly along the screen, but I really can't say how without needing to transfer the active display in to a fake fullscreen display... in which case you could just add the fade on the fullscreen mapping.

Seems kind of unecessary. I don't even use a screen saver myself.
Sane is offline   Reply With Quote
Old Aug 16th, 2005, 2:41 AM   #3
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 3 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
I'm not too sure what you mean.
But Fedora Core 4 Linux has a screensaver that fades in, to black. then when you move the mouse turns off.
coldDeath is offline   Reply With Quote
Old Aug 16th, 2005, 7:33 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
In the days of dumb monitors one needed a screensaver. It saved the screen from burn-in. Nowadays, why would one want one? If I want to see a pretty picture, I look at my walls, not my monitor. If I'm using the monitor, I'm not looking at the screensaver! I'm sorry, this gives me a picture of a person without a life or work to accomplish or information to glean or fun to be had sitting before the machine watching the fish swim or the stars recede. Strictly personal outlook, of course. Your mileage may vary.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 16th, 2005, 7:56 AM   #5
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
hehe, you took the words right outta my mouth, sane and dawei. Some people apparently have too much time on their hands and "nur Flusen im Kopf" (nothing but fussles in their head). But at least we are here, to rake 'em over the coals
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Aug 18th, 2005, 1:58 AM   #6
RaceGT
Newbie
 
Join Date: Aug 2005
Location: New England
Posts: 6
Rep Power: 0 RaceGT is on a distinguished road
Yeah. I'm glad to get some fresh insight on the subject.

Thus ends my foray into a board where the average response is:
"You do not know c programming. We are better than you. Your topics
are meaningless. You will not be allowed."
RaceGT is offline   Reply With Quote
Old Aug 18th, 2005, 5:42 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Whoa there, guys. Who gives a damn why he wants the screensaver? He's not exactly harming anyone with it. The fact is, he wants this screensaver, and IMO, we should help him to make it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 18th, 2005, 5:43 AM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Sonny boy, if you come to a board like this you will get unfettered input not tailored to your infantile expectations. If you're looking for pap or to stay on the sugar teat, stay home with mama. You ainnagonnalike geeks, who often leave their social graces at the door, so maybe you should switch your major to janitorial or something.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 18th, 2005, 6:27 AM   #9
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 707
Rep Power: 4 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
I agree with Ooble. Although I don't know how to do this myself, I'd supose you may be able to use Direct X in some way if using Windows. If using some other OS, I have no idea.
thechristelegacy is offline   Reply With Quote
Old Aug 18th, 2005, 6:50 AM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Many screensavers use the DirectX or OpenGL libraries to perform smoothly. For example, all the 3D ones that come with Windows use OpenGL. I suggest learning C++ like the back of your hand, and picking up a book on either.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC