Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!newcastle.ac.uk!tuda!des3swy From: S.W.L.Yip@newcastle.ac.uk (S.W.Yip) Newsgroups: comp.sys.mac.programmer Subject: Journaling (record & playback) of inputs Message-ID: <1991Jun26.162909.22605@newcastle.ac.uk> Date: 26 Jun 91 16:29:09 GMT Sender: news@newcastle.ac.uk Distribution: comp.sys.mac.programmer Organization: University of Newcastle upon Tyne, UK NE1 7RU Lines: 27 I am stuck, desperate ... please HELP ! I am trying to use the "Journaling Mechanism" , as described on page I-261 in Vol.1 of Inside Macintosh. I need to record user inputs (keyboard, mouse inputs) onto a journal file and then play it back as a kind of automation. I have tried to set JournalFlag and JournalRef with suitable values, with no effect. I have written a DeskAccessory /driver for this, using ThinkPascal.(I don't have MWP or assembler.) I have to trust the {$J+} compiler directive of ThinkPascal to access external globals (i.e. JournalFlag, JournalRef). I have all volumes of Inside Macintosh and have read chapters about DA, drivers, low memory global variables. My DA only seems to receive Control calls from the DA manager, but NOT the event manager ! How do I know the event manager knows the existence of my DA/driver? The only link seems to be the JournalFlag global variable. I have now found out the location for JournalFlag is $8DE, and tried to change its value to 16 (playback) or 17 (record) using the in-line assembler within a C program, but failed (its value remains as 0 after move.w #17, 0x8DE). Any advice will be appreciated! Stephen Yip, University of Durham, England, Uk. S.W.L.Yip@durham.ac.uk