My target is to send keyboard events to external application.
From my application, I'm launching a C# console application that bring the target application to the front and uses SendKeys.SendWait
to send keyboards events. I ran into a rate case where the command doesn't have any affect.
When debugging it, it works but when running it not in debug it fails. I think it as something to do with the fact that when debugging my application is the active application.