Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!ukma!rutgers!orstcs!mist!nacer From: nacer@mist.cs.orst.edu (Abdenacer Moussaoui C.) Newsgroups: comp.lang.pascal Subject: wanting a TP keyboard macro program hints? Summary: A simple TSR in TP to insert a string into the keyboard buffer. Keywords: TSR Message-ID: <8310@orstcs.CS.ORST.EDU> Date: 18 Jan 89 02:35:30 GMT Expires: 3 Mar 89 08:00:00 GMT Sender: usenet@orstcs.CS.ORST.EDU Reply-To: nacer@mist.UUCP (Abdenacer Moussaoui C.) Organization: Oregon State University - CS - Corvallis, Oregon Lines: 23 I would like someone out there to send me a simple TSR program in Turbo Pascal that would insert a string into the keyboard buffer. In doing so I would you to point out briefly. - how your program works - what are things to watch for when using a TSR - how can I insure that the current application gets the appropriate keys that the TSR just inserted in the keyboard. - you may want to include also how you would trap keys from within your TSR program. - How to go about deciding and restricting to a minimum the size of your TSR (stack, DS, heap, etc...) For simplicity assume your sample is to insert the word 'HELLO' when the CTRL-P key is pressed for example. I am planning to write my own keyboard macro and this part will help me achieve that. The minimum inlines and more use of TP4 features the better. Thank you. --nacer nacer@mist.cs.orst.edu