SendkeysTo Issue

Started by bettman, February 25, 2015, 11:18:44 AM

Previous topic - Next topic

bettman

Greetings,

I am attempting to use SendKeysTo to send some text to the password field of an application dialog (3rd party application). It sends text to the field but is not accepted by the application. If I manually type the password in, the program launches correctly. Is there something special I have to do when sending text to a password field?

Thank you in advance for any assistance.

td

The SendKeysTo function passes the keys to the device driver via a Win32 API function after converting them to something the driver can understand.  I suppose it is possible that an application could somehow detect the difference between synthesized key press Windows messages and ones generated by a keyboard but I am not sure how that would be done. 

Are you sure that the you are sending the correct information to the control and that the control is actually receiving it?
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade