Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!caen!sol.ctr.columbia.edu!ira.uka.de!fauern!faui43.informatik.uni-erlangen.de!csbrod From: csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) Newsgroups: comp.sys.atari.st.tech Subject: Re: TSR programs Message-ID: <1991Feb22.125719.12890@informatik.uni-erlangen.de> Date: 22 Feb 91 12:57:19 GMT References: Organization: CSD., University of Erlangen, Germany Lines: 26 csual@warwick.ac.uk (Jason Morris) writes: > I recently started playing around with the Atari-specific libraries of >Lattice C V.5, rather than just plain old bog-standard C. I've sussed out >desktop accessories (I hope!!) but I don't even know where to start with >TSR's. > Say I wanted a process to sleep until I pressed a certain hot-key, or >some other such event like a timeout, and then wake up and do something. What >do I have to do to set this up? > If you can help I'd appreciate it, and a simple TSR source (e.g. a screen >saver) would be ideal. First, read the doc on Ptermres(). It tells you how to terminate a program of yours aqnd stay resident. If you want something like a hot-key, you will have to link your program into one or the other vector; in a screen saver, for instance, you might intercept the mouse movement vector so that a routine in your programs is being called whenever you move the mouse. These are the basics how it works - details depend on the kind of TSR you want to write. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de ----------------------------------------------------------------------