Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting focus to external applications and sending keystrokes

Status
Not open for further replies.

hochus

Programmer
Feb 1, 2001
6
US
I am having trouble setting the focus to external applications. I have code that starts two external applications - one to dial up to a remote network and one to make the connection to an AS/400. Then the code does an FTP of data to the AS/400. Once the FTP is completed, I need to be able to make the external applications active and disconnect from the network and close the programs. When I try to use AppActivate, I get Error Code 5 - Invalid procedure call or argument. I'm not sure what this means or how I can make the external applications the active window. If anyone has any idea of how to do this, I would greatly appreciate it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top