home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: Driving mac program from another
- Message-ID: <1992Dec18.175034.23523@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <1992Dec18.041429.22979@philmtl.philips.ca>
- Date: Fri, 18 Dec 1992 17:50:34 GMT
- Lines: 22
-
- In <1992Dec18.041429.22979@philmtl.philips.ca> ray@philmtl.philips.ca (Ray Dunn) writes:
-
- >Given a Mac program which normally takes much mouse events and keyboard
- >input, is it possible (easily/with difficulty) to have that program run
- >automatically with the input being generated by another program?
-
- Well, set "null events" on, and patch into the jGNEFilter. For
- every NULL event, instead add your own keyDown events, with a nullEvent
- sprinkled in here & yjere for good measure and recovery.
-
- However, affecting someone elses jGNEFilter means patching in on
- INIT time; so you'll have to have a cool INIT/APPL combo.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- Engineering: "How will this work?" Science: "Why will this work?" Management:
- "When will this work?" Liberal Arts: "Do you want fries with that?"
- -- Jesse N. Schell
-