Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!well!svc From: svc@well.UUCP (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: Request for macros with a programming interface. Summary: Yes, and it can be done! Message-ID: <13707@well.UUCP> Date: 19 Sep 89 15:42:55 GMT References: <2380@crdgw1.crd.ge.com> Reply-To: svc@well.UUCP (Leonard Rosenthol) Distribution: usa Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 30 In article <2380@crdgw1.crd.ge.com> lohr@sundog.crd.ge.com () writes: > > > >Does anyone know of a macro package, similar to Macromaker, or Automac III, >which allows a programming interface to a macro? In other words, I would >like to invoke a macro from a THINK C program rather than from a key stroke >or from a menu choice. > Tempo II from Affinity MicroSystems can be accessed from a Think C (or any other development system) program in a variety of ways. They will supply interested developers with a 'Tempo II Developers Pack' which includes the information (and sample source) you need to access Tempo II Macros. This includes not just executing them, but you can also test Tempo II status, start and stop recording AND even feed it an application generated Macro. >Alternately, is there a code fragment which would stuff a keystroke >event into the event loop in order to simulate the keystroke which would >invoke a macro? > I believe, have never tried it though, that if you do a PostEvent with the keystroke you need most/all of the Macro packages will find it. There wa an XCMD for Hypercard that would allow you to do just that (post a keyDown event for use in executing Macros) -- +--------------------------------------------------+ Leonard Rosenthol | GEnie : MACgician Lazerware, inc. | MacNet: MACgician UUCP: svc@well.UUCP | ALink : D0025