Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!sppy00!jaa From: jaa@sppy00.UUCP (Jeff Anderson) Newsgroups: comp.os.msdos.programmer Subject: Re: faking keypresses Keywords: keypress interrupts resident device input Message-ID: <927@sppy00.UUCP> Date: 11 Sep 90 18:25:27 GMT References: <531@roo.UUCP> Reply-To: jaa@sppy00.UUCP (Jeff Anderson) Organization: Online Computer Library Center, Dublin, Ohio. Lines: 19 You can add keys to the keyboard buffer by using Interrupt 16h, function 5h The function is called with AH = 05h CH = the scan code CL = the character If AL returns a 1 then the keyboard buffer is full. This function works only on IBM AT and compatibles and PS2s with enhhanced keyboards. For more information, see Page 499 of the DOS Programmer's Reference (2nt Edition) by Terry Dettmann ------------------------------------------------------------------------------ Jeff Anderson killer!osu-cis!sppy00!jaa Online Computer Library Center (OCLC) unreliable: jaa@sppy00 614-764-6222 ------------------------------------------------------------------------------