🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3919

Problem: Detecting mouse events inside a TSR

#3919
From: EAVES,HUGH
Date: Fri, 14 Dec 1990 14:00
23 lines
1897 bytes
I've written a TSR screensaver program. It ties into the system clock interrupt
(1Ch) and the keyboard interrupt (09h). As with most screensavers, the system
clock increments a counter, and the keyboard interrupt resets the counter. If
the counter reaches a certain value the screen is blanked. If the screen is
blanked and a key is pressed, the screen is reactivated and the timer reset.
This works fine, except when using a mouse. If the user doesn't press any keys
while using the mouse, the screen will blank after the normal amount of time.
This forces him to press a key, which gets annoying when running a mouse based
application. I was wondering if there was a standard way to monitor mouse
events inside a TSR, without interfering with the application progam. 
Basically, I would like the screensavers counter to reset whenever the mouse
was moved or the mouse button was pressed. I've got the standard DOS/BIOS
references, but there doesn't seem to be a way for the TSR to monitor the mouse
at the same time as the application program. Any ideas?

Thanks,
Hugh

*******************************************************************************
** Hugh L. Eaves                      ** Internet: hleaves@ruby.vcu.edu      **
** Medical College of Virginia        ** Bitnet: hleaves@vcuruby             **
** Department of Human Genetics       ** Voice: (804) 371-8754               **
***************** All non-incendiary communication welcome! *******************
Technical Details
Message-ID: <59438@brunix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!brunix!hleaves@ruby.vcu.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!brunix!hleaves@ruby.vcu.edu
From: hleaves@ruby.vcu.edu (EAVES,HUGH)
Newsgroups: comp.os.msdos.programmer
Subject: Problem: Detecting mouse events inside a TSR
Keywords: mouse, TSR
Message-ID: <59438@brunix.UUCP>
Date: 14 Dec 90 14:00:33 GMT
Sender: news@brunix.UUCP
Reply-To: hleaves@ruby.vcu.edu
Organization: Medical College of Virginia, Hired Hackers
Lines: 23