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!

Send Password to another App

Status
Not open for further replies.

Dhph

Instructor
Nov 12, 2003
1
DE
Hi,
I want to send the Password to another Application and simulate the Return-Key pressed. The Windows title is "File Access Password and it has only an Edit, and one OK- and one Cancel-Button. How can I do that?
 
I assume you cannot modify the other application.

You can get the handle of the other application using Windows.FindWindow(). Then you can iterate through the child windows using Windows.GetWindow(). Windows.GetClassName() can identify the edit, and you can SetWindowText to it.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top