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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send keys statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hey i got a problem

i go to a website and do sendkeys to log in for me
then it does. but then it sends keys again and it stuffs up :(

how would i get it to send keys then stop when its done???
 
Hi,
You can implemnents a Flag mechanism to check if the user is already logged in. It could bedone by simple keeping a boolean session variable (Let's say isLogged) whose values be default would be false.
You check for the value of the Variable, if it is false then you proceed with Logon process. Once you are logged in, you can change the value to True. So that when next time again when it sends the keys, the logon won't happen cauz the Value of the isLogged variable would be True.

I guess this would help you solve ur problem.

regards
Atul
 
Another thing to note about SendKeys is that it causes problems using Windows 2000. I think I saw a workaround for that issue on the Micro$oft support site somewhere. Best Regards and many Thanks!
Michael G. Bronner X-)

"They who drink beer will think beer." Washington Irving
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top