1. Windows - To issue dial commands and disconnect commands to the Passport Communications app
2. Rumba/HLLAPI to interact with the CWF
The application has to check to see if the modem connection has been dropped due to an inactivity timeout and issue a dial command if there is no HLLAPI connection. Everything works fine if the Passport application has Focus. If it doesn't have the Focus, the dial command "Alt C" does not work. I have tried to set the focus to the Passport app by using the following commands.
Connect "Passport - A", stWindows
txtLastCmd = " Connect 'Passport - A', stWindows"
Click "Passport - A"
Activate "Passport - A"
Key "%C"
txtLastCmd = " Alt C Issued"
I thought the Activate or the Click commands would set the focus back to Passport if it had been lost, but it doesn't appear to be working. The "Alt C" command is only accepted if I manually click on the title bar before the command is issued. As long as no one works on the PC to change the focus, the Passport app can go through several cycles without errors of the following steps:
Connecting to IVANS via modem
Switching to the Rumba/HLLAPI connection
Accessing the CWF via HLLAPI
Inactivity causing the timeout to drop the modem line
Switching back to the Windows connection
Issuing the "Alt C"
Connecting to IVANS via modem
Does anyone have any suggestions for making sure that the Passport app has focus before I send the "Alt C"?
I'm sure that I could do some research into the Windows API and find something there, but thought I would see if any of you had found an easier way.
-- Neil Carman Director Technical Development Manigault & Associates LLC
http://www.m-allc.com Work: (866) 484-0658 ext. 6 Fax: (714) 968-5632
