PDA

View Full Version : How to create screensaver ?



Aki Tomar
5th February 2008, 06:37
Dear Friends;
I am strucked at a point that I have to create a program which loads on the system with system startup &check when was the last keyboard or mouse event occurred .If it exceeds more than 2 minutes than it opens a program in itself say playing mp3 from mplayer.& this stops with any keyboard or mouse event.& agains sets the timer to 0 & wait for 2 minutes .

Is there is any idea to do this.

Your New Friend;
Aki Tomar:crying:

aamer4yu
5th February 2008, 06:41
You will need something like Windows Hook. You will have to look more into WIndows API for that to do.

marcel
5th February 2008, 07:00
Why does everybody just loves to say "hooks", when they mostly are nothing but just some callbacks?
Anyway, for creating a screen saver look at: http://blogs.msdn.com/coding4fun/archive/2006/11/01/918703.aspx. (http://blogs.msdn.com/coding4fun/archive/2006/11/01/918703.aspx)

As for the other things, you can implement them with timers.

Aki Tomar
5th February 2008, 07:20
Why does everybody just loves to say "hooks", when they mostly are nothing but just some callbacks?
Anyway, for creating a screen saver look at: http://blogs.msdn.com/coding4fun/archive/2006/11/01/918703.aspx. (http://blogs.msdn.com/coding4fun/archive/2006/11/01/918703.aspx)

As for the other things, you can implement them with timers.

Thanks Marcel,
But man I have not to create a screen saver I have to create a program which checks the system ;if system is idol than loads a program,if not than wait for it.
Simply just think it in different way.
please help me;
Aki Tomar

anuragnvs
1st May 2017, 11:12
all links provided here are broken... pls suggest any active link for creating Screensaver for windows using Qt5.1 /5.5 ??