TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALEX WALKER
from: FERNANDO ARIEL GONT
date: 1997-12-12 00:42:00
subject: How to make a DOS screen saver?

Hullo Alex Walker, hope you are having a nice day!!
22-Nov-97 23:41:55, Alex Walker wrote to All
          Subject: How to make a DOS screen saver?
 AW> Just wondering if anyone had any good ideas where I can find out
 AW> how to make a DOS screen saver?  I'd like to blank the screen and
 AW> then run a little program I've created to look for Perfect Numbers
 AW> when ever there's no user input for... well just like a screen
 AW> saver.  Thanks for any ideas or code.  C yaz
Well, I think you should learn some ASM.
Then you have to make a TSR program, an check the events you want to know
about (for example, there is a function of int 33h with let you take
control when someone moves the mouse or press any of its buttons).
So you could hook int 28h or int 8h, have an internal counter (within the
code of your resident program), and you could reset it whenever someone
presses a key or moves the mouse.
And you could check a certain value of the counter, so that after the
counter reaches it, it executes the code you want to be executed.
To save and restore the screen, you could either change the video page you
write to in your resident program and before exiting your TSR then
restoring the old video page number, or you could simply have an internal
buffer to which you could copy the contents of the screen so you could
restore the screen contents before exiting your TSR.
Note: TSR stands for "Terminate and Stay Resident" program.
 -=> Yours sincerely, Fernando Ariel Gont <=-
e-mail: FGont@siscor.bibnal.edu.ar
e-mail "Good Stuff!" _*Magazine*_ : gstuff@siscor.bibnal.edu.ar
FidoNet: 4:900/470.10
Sk-Network (Argentina): Murdock's Point (200:201/200.1)
--- Terminate 5.00 UnReg(59)
---------------
* Origin: This point doesn't suck!! (4:900/470.10)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.