Okay, I've got this little application automation program that works
great in OS 9, but heck if I can figure out how to make it work in OS
X..
Basically in OS 9 it uses PPostevent (via declares) to put keystrokes
into the event queue, which makes the target program do a bunch of
stuff. After each keystroke I check the event queue (via
OSeventAvail) to make sure the queue is empty before sending the next
keystroke. This prevents the queue from filling up and ignoring
keystrokes and also lets me know when the target application is done
processing.
Now in OSX I tried using the PressKeyMBS plugin for emulating
keystrokes, since PPost is not available in CarbonLib and that works
great, except for the fact that I can't tell when the target app is
done processing. OSeventAvail is not in CarbonLib. EventAvail is,
and I don't remember the exact differences between the two, but one
works and the other doesn't.
It's been a while since I wrote the original program and was never
terribly toolbox-savvy so I can't remember exactly why what I did
worked, and have no clue how to proceed with OS X.
Is there a similar method in OS X or some other way of finding out
when the Target app is done doing it's thing?
Thanks!
PS: I did not write the target app, it is not applescriptable and
will probably never be, thus my method of controlling it.
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|