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 Keys Help!?!?!?!?

Status
Not open for further replies.

nomaam

Programmer
Dec 29, 2003
39
CA
i am useing:

System.Windows.Forms.SendKeys.Send("hello")

but alot of the times it doesn't print the whole string. i.e. it prints "hel" or something like that. i have no idea why it is doing this, but sometimes it prints the whole thing and some times it doesn't...

also i tried sending out one char at a time, that still didn't work. i would get all the letters some times but other times i wouldn't even get one letter.

any ideas on whats wrong or how to get around this problem?

is there a better/more reliable way to send keys???

thanks.

vb.net 2002
 
Did you try
Code:
System.Windows.Forms.SendKeys.SendWait("hello")
 
If that doesn't work, post your code.

And yes, I'm sure there are other ways to do what you want. What are you trying to accomplish?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top