|
gablea on 08/11/11 - 17:22:22
Hi all you experts,
I have a text only application and I would like to be able to switch on a screen saver (moving text randamly around the screen) so I can extened the life of the display. I was wondering if someone has some sample codes as to how to tricker the screen saver after say 5 mins? (and some sample screen saver codes would be nice)
Cyperium on 08/13/11 - 07:44:36
thetime = TIMER
elapsedtime = TIMER - thetime elapsedtime is in seconds, so you could use that to know that five minutes has passed (60*5). If the user moves the mouse or uses the keyboard then set thetime = TIMER again to reset the counter.
Cyperium on 08/13/11 - 07:46:13
Obviously elapsedtime = TIMER-thetime should be in a closed loop and thetime = TIMER should be outside of that loop (or in the condition for the mouse and keyboard to reset the counter).
gablea on 08/15/11 - 14:54:54
Reply to this message
ok so how do I do the moving text? Say something like
"Screen Saver active" "Press clear to resume" and then have that bounce around the screen in random places |
|