Path: utzoo!mnetor!uunet!pyrdc!grebyn!umd5!jonnyg From: jonnyg@umd5.umd.edu (Jon Greenblatt) Newsgroups: comp.sys.ibm.pc Subject: Dos command prompt detectection Message-ID: <2513@umd5.umd.edu> Date: 28 Mar 88 21:11:46 GMT Reply-To: jonnyg@umd5 (Jon Greenblatt) Followup-To: jonnyg@rover.umd.edu Distribution: na Organization: University of Maryland, College Park Lines: 11 I need a description of how a TSR such as a dos editor can detect if dos is in the command prompt state. I want to write a program that checks to see if the PC has been idle at the command prompt for more than five minutes then stuff the keyboard buffer with the keys needed to execute an idle program. This may seem like an awkward way of doing things but I have very good reasons for doing this. I just need a description of how to detect if the command prompt is active when writing a TSR for int XX (XX = 16h, 21h). Thanks very much, Jon Greenblatt