使用SendKeys.SendWait函数出现重复的字符 [英] Duplicate characters appears using SendKeys.SendWait function

查看:646
本文介绍了使用SendKeys.SendWait函数出现重复的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用SendKeys.SendWait("ABC")函数在Web浏览器文本框中传递按键事件.但它显示为"AABBCC" ...... :(
使用以下代码:

SendKeys.SendWait(PassString)
Thread.CurrentThread.Sleep(1000)

仍然不能正常到来.请帮忙.

问候,
Harshala

Hi,

I am using SendKeys.SendWait("ABC") function to pass keypress event on webbrowser textbox. But it appears as "AABBCC"...... :(
Using Following code :

SendKeys.SendWait(PassString)
Thread.CurrentThread.Sleep(1000)

Still not coming properly. Please Help.

Regards,
Harshala

推荐答案

如果您实际上是使用sendkeys.sendwait发送按键,那么结果重复就不足为奇了.

您会从键盘上收到一个字母,然后通过sendkeys.sendwait得到相同的字母.
If you are actually sending keypresses using sendkeys.sendwait then it is no surprise that the results are duplicated.

You are getting one letter from the keyboard and then the same letter via sendkeys.sendwait.


这篇关于使用SendKeys.SendWait函数出现重复的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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