如何使用 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()<传递这样的字符串/code> 命令
.
It only sends password#
; remaining characters 99@TT
are skipped. Please let me know how to pass such a string via Send()
command.
推荐答案
在 AutoIt 关于 Send()
函数的文档中,您可以选择发送 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")
我刚刚找到了这个答案link,我想它可以帮助你.
I have found just now this answer link, I think it can help you.
这篇关于如何使用 Send() 传递像“password#99@TT"这样的字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!