I use the Sendkey routine in the Monkeybread plugin to make serial incoming ASCII strings appear as if they were typed at a keyboard to capture output from a scale into Filemaker. For your application you could create a RB program that would use Sendkey to make text you type be made to appear as if it were coming from the keypad. The tricky part is that the focus needs to be on the field in your old application that you want to receive the text, when the new application sends it. I'm not sure how you would automate that, but you could delay sending the text from the new program, until you had time to click on the field in the new program.
David Graham -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jacob Palme Sent: Friday, September 01, 2006 4:14 AM To: [email protected] Subject: Communicating with existing program Is there any way in which I can write a program in RealBasic which communicates with an old program, running in Classic mode. I want to be able to type text into a field in the window of this program, type RETURN to the program, and then read the results from this program in another area of its window. My guess is that this program does not support applescript or apple events. -- Jacob Palme <[EMAIL PROTECTED]> (Stockholm University and KTH) for more info see URL: http://www.dsv.su.se/jpalme/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
