为什么sendkeys.send()方法不能假设空格键 [英] why did the sendkeys.send() method can't suppose space key

查看:515
本文介绍了为什么sendkeys.send()方法不能假设空格键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了msdn,找不到{SPACE}。



这些答案我发现如下,但它很好。

1.SendKeys.SendWait({BREAK});

2.SendKeys.SendWait(); SendKeys.SendWait(});



如何解决这个问题?

i searched msdn,can''t find the {SPACE}.

these some answers that i found as follows,but it''s fause.
1.SendKeys.SendWait("{BREAK}");
2.SendKeys.SendWait(""); SendKeys.SendWait("}");

how can i solve this problem?

推荐答案

你好,



尝试如下。

Hi,

try by like below.
SendKeys.Send("DIR {ENTER}");



参考 Sendkeys.Send exception关键字SPACE无效 [ ^ ]



希望它有效。


refer Sendkeys.Send exception Keyword SPACE is not valid[^]

hope it works.


这篇关于为什么sendkeys.send()方法不能假设空格键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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