home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 20044 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  35 lines

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