I am using SendKeys.Send("hello world") to send a text string to an external application (eg. notepad) but it only works fine the first time but never again until you reset the controlling application.
I am "discovering" the handle for my target window, bringing it into foreground using unmanaged win32 calls which all seem fine. I send my first string and it works great but after that it fails to send anything (that I can see).
I have this function on a button and each time I click it the target app. does indeed receive focus but no string is apparently sent.
I have used both the .Send and .SendWait methods but neither solves the problem.