A different method to send key presses to an application in vb.net

浪尽此生 提交于 2019-12-12 04:17:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!