I have C# application that uses Sendkeys.send to send text to other applications. When executed on windows 7 after some time the Sendkeys stop responding and doesn\'t send a
There is a (for me, at least) rather strange remark on the MSDN documentation for the SendKeys.Send method:
Caution
If your application is intended for international use with a variety of keyboards, the use of Send could yield unpredictable results and should be avoided.
I do not understand the reason for the statement, but maybe this is (one) cause for the behaviour you ecperience?
At the very bottom of the same MSDN page, they further state:
...The SendKeys class is susceptible to timing issues, which some developers have had to work around. The updated implementation is still susceptible to timing issues, but is slightly faster and may require changes to the workarounds...
Seems to me that SendKey
is a function to avoid under all circumstances.