如何通过C#Sendkey发送加号(+)! [英] How to Send plus (+) via C# Sendkey !
本文介绍了如何通过C#Sendkey发送加号(+)!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎(+)是Sendkey模式中的特殊字符:
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send(v = vs.110)的.aspx [ ^ ]
那么,如何发送A Plus?!
谢谢
解决方案
呃......答案就在你在问题中发布的链接SendKeys.Send(< span class =code-string> {+});
< blockquote>答案在你在问题中提到的MSDN文档页面上。
Quote:例如,要指定加号,请使用{+}。
注意:这些是括号字符{}而不是括号()。
It seems that (+) is an special character in Sendkey pattern :
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send(v=vs.110).aspx[^]
So , How can Send A Plus ?!
Thanks
解决方案
Er... the answer was on the link you posted in your questionSendKeys.Send("{+}");
The answer is on the MSDN documentation page that you referred to in your question.
Quote:For example, to specify the plus sign, use "{+}".
Note: Those are brace characters {} not parenthesis ().
这篇关于如何通过C#Sendkey发送加号(+)!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文