Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!agate!bionet!apple!tecot From: tecot@Apple.COM (Ed Tecot) Newsgroups: comp.sys.mac.programmer Subject: Re: GetMouse et al. Message-ID: <20034@apple.Apple.COM> Date: 6 Nov 88 00:09:23 GMT References: <10849@srcsip.UUCP> <162@internal.Apple.COM> <10998@srcsip.UUCP> <16230@agate.BERKELEY.EDU> <2553@munnari.oz> Organization: Apple Computer Inc, Cupertino, CA Lines: 28 In article <2553@munnari.oz> jkjl@munnari.UUCP (John Lim) writes: >In article <16230@agate.BERKELEY.EDU> lippin@math.berkeley.edu writes: >>Recently mnkonar@ely.UUCP (Murat N. Konar) wrote: >> >>>This is what I was afraid of. What I'm trying to figure out is how I can >>>"fake" mouse activity a la QuicKeys and others. I had hoped that manipulating >>>the event queue would allow me to do this but no dice. What is the best or >>>easiest (take your pick) way to do this? > >I thought you could always use the journaling driver described in the Event >manager chapter in IM 1. I do remember somewhere a comment that it might >not be supported in future versions of the Mac, but give it a go anyway >and let us know the answer. > >Furthermore the person who wrote Easy Access is on the net. Perhaps >you could ask him. Hello? Did somebody call? The method used by Easy Access won't work for you. In a nutshell, Easy Access emulates the native mouse driver. It takes advantage of the fact that the human in the loop won't press the mouse until the cursor is in the right place. Since your routine doesn't want to wait for the cursor VBL to update (and I don't even know if it can), you can't use this method. I'd also recommend using journalling. I'm pretty sure it has all the hooks you need. _emt