如何使用Send()传递类似"password#99 @ TT"的字符串? [英] How to use Send() to pass a string like "password#99@TT"?
问题描述
我正在使用AutoIt处理Selenium无法访问的浏览器身份验证窗口.下面是我的AutoIt代码.
I am using AutoIt to handle a browser authentication window which Selenium can't access. Below is my AutoIt code.
Send("demo")
Send("{TAB}")
Send("password#99@TT")
仅发送password#
;其余字符99@TT
被跳过.请让我知道如何通过 Send()
命令.
It only sends password#
; remaining characters 99@TT
are skipped. Please let me know how to pass such a string via Send()
command.
推荐答案
在有关Send()
函数的AutoIt文档中,您可以选择发送RAW.
In the documentation of AutoIt about the Send()
function you have an option to send RAW.
在此处
在您的情况下,我会尝试Send("password#99@TT", 1)
In your case, I would try Send("password#99@TT", 1)
希望这会有所帮助!
修改
您也可以尝试Send("password{#}99@TT")
我刚刚找到了这个答案链接,我认为它可以为您提供帮助.
I have found just now this answer link, I think it can help you.
这篇关于如何使用Send()传递类似"password#99 @ TT"的字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!