home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!netsys!agate!apple!apple!cambridge.apple.com!straz@cambridge.apple.com
- From: straz@cambridge.apple.com (Steve Strassmann)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Controlling non-modal dialo
- Message-ID: <9211111858.AA28596@cambridge.apple.com>
- Date: 11 Nov 92 18:59:18 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 26
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Full-Name: Steve Strassmann
- Original-To: andre@riks.nl
- Original-Cc: info-mcl
-
- >Date: 9 Nov 92 12:23:00 U
- >From: "Andre Koehorst" <andre_koehorst@riks.nl>
- >Subject: Controlling non-modal dialo
- >To: info-mcl@cambridge.apple.com
- >
- >REGARDING Controlling non-modal dialogs
- >For a project we are working on we need to control other appliactions from
- >within MCL. One thing we haven't been able to solve is handling NON-modal
- >dialogs. One solution that would work for us is some function that could be
- >called with a character, corresponding to the first char of the name of a
- >dialog-item, eg calling (PRESS-ITEM #/C) to press a button named "Cancel".
- >(Note that this function should find the handler to the dialog itself) Has
- >anyone done any work to solve this. Anything would be of great help.
- >Thanks,
- >
- >Andre Koehorst
- >Research Institute for Knowledge Systems
- >Maastricht (the best known totally insignificant town of the world)
- >The Netherlands
- >email: andre@riks.nl
-
- There might be a way to do this cleanly from MCL, but one trick that
- comes to mind is to use the popular utility QuicKeys, from CE Software.
-
- You can have MCL send an AppleEvent to QuicKeys, and then QuicKeys can
- execute any mouse or keyboard event in the slaved application.
-