按住“空格"键不放按钮 [英] Push and hold "Space" button
本文介绍了按住“空格"键不放按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我解决这个问题.我需要一种方法,按下SPACE键盘按钮并等待1秒.程序会释放该按钮.
我不知道如何执行此操作...
Hi,
Can any one help me with this problem. I need make a method which press SPACE keyboard button and after 1sec. program releases that button.
I have no ideas how to do this...
推荐答案
您可以使用SendKeys [
You can use the SendKeys[^] method executed in a loop. However, depending on what you are trying to accomplish it may be better to call the indended method directly rather than simulating a keystroke.
这篇关于按住“空格"键不放按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文