cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/20/21:32:53

From: Harald Meyer <hmeyer AT berlin DOT netsurf DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ScreenSaver?
Date: Sun, 19 Jul 1998 22:18:15 +0200
Organization: [Posted via] Interactive Networx
Message-ID: <35B25487.E958E952@berlin.netsurf.de>
References: <35B1977C DOT 8A1DACD2 AT jove DOT acs DOT unt DOT edu> <35b241b6 DOT 0 AT news DOT provide DOT net>
NNTP-Posting-Host: dyn074.berlin.netsurf.de
Mime-Version: 1.0
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Sean Middledich schrieb:

> If it was for MS-DOS, you would need to make it a TSR.  This can be done
> using Interrupt 21h, function 31h or interrupt 27h.  You then need tomoniter
> the keyboard interrupt ( 09h ).

you have to redirect interrupt 9h, so that it points to a routine you
programmed. You mustalso reprogramm the timer interrupt. this one starts after a
defined time, in which there was no message from your keyboard handler, the
screensaver effect.
The message would normally be a variable to be set if there was a key hit. The
timer int checks this variable, and sets it back.
and if it had been set it also sets back the time till calling the screensaver
effect.
You should do the same with int 33h (mouse)
but don't forget to call the old int handlers as well!!!

Harald Meyer

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019