发送"空格键"使用SendKeys.sendwait() [英] send "spacebar key" using SendKeys.sendwait()

查看:231
本文介绍了发送"空格键"使用SendKeys.sendwait()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何发送使用SendKeys.send空格键();它与其它键但onley空格键工作!!
这里是我发现的其他键的链接 HTTP:/ /msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

i was wondering how to send spacebar key using SendKeys.send() ; it works with the other keys but onley the spacebar !!
here is the link where i found the other keys http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

推荐答案

每您链接的文档, SendKeys.send(); 将派遣一个空格键。

Per the documentation you linked, SendKeys.send(" "); will send a space key.

这需要特殊的codeS唯一键。

The only keys which require special codes are "characters that aren't displayed when you press a key".

这篇关于发送"空格键"使用SendKeys.sendwait()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆