Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sendkeys.Sendwait()i used this class to sending keys to other application but this is not working on client machine. thx in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 8-Sep-12 1:21am    
Who told you it should? And why? If you want use sending a key for some UI development, this is a big misconception. If you try to use it in some kind of remote service, this mechanism is too weak to bother about it.

If you explain your ultimate purpose, perhaps I would be able to give you better advice.
--SA

1 solution

Have a look at the note on http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx[^] if you are using Vista.

"The SendKeys class has been updated for the .NET Framework 3.0 to enable its use in applications that run on Windows Vista. The enhanced security of Windows Vista (known as User Account Control or UAC) prevents the previous implementation from working as expected. "
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900