问题
I currently use this method to send keypresses to an application:
System.Windows.Forms.SendKeys.SendWait("f")
In the past I've found this works no problem. Assuming the target application has focus this has worked for me in the past. Now, when working with a different application it's as if the key isn't being pressed. I have my vb.net application running with administrative privileges (the same elevation as the target application). Any help/links/code would be much appreciated.
来源:https://stackoverflow.com/questions/22810290/a-different-method-to-send-key-presses-to-an-application-in-vb-net