停止sendkeys以继续发送命令 [英] stop sendkeys to keep sending a command
问题描述
亲爱的,我需要你的帮助。
Dears, I need your help.
我建立了一个vb.net应用程序,我正在使用sendkeys。每次执行以下行时,sendkeys都会一直发送输入。
I build an vb.net application where I'm using the sendkeys. each time I execute the following line the sendkeys keep sending enter all the time.
My.Computer.Keyboard.SendKeys(" {ENTER}",False)
My.Computer.Keyboard.SendKeys("{ENTER}", False)
我如何解决它,所以它只发送一次或如何发布 密钥?
how I can fix it and so it just send it once or how I can release the key?
推荐答案
必须有代码触发该代码行,因此在代码后面放置一个断点与SendKeys行上的断点一起行。
There has to be code that triggers that line of code so place a break-point on code following up to that line along with a break-point on the SendKeys line.
如果您从未使用过调试器
这是一个资源。
If you have never used the debugger here is a resource.
这篇关于停止sendkeys以继续发送命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!