How to use Send() to pass a string like “password#99@TT”?

三世轮回 提交于 2019-12-02 10:08:40

问题


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")

It only sends password#; remaining characters 99@TT are skipped. Please let me know how to pass such a string via Send() command.


回答1:


In the documentation of AutoIt about the Send() function you have an option to send RAW.

See more documentation here

In your case, I would try Send("password#99@TT", 1)

Hope this helps!

Edit

You can try also Send("password{#}99@TT")

I have found just now this answer link, I think it can help you.



来源:https://stackoverflow.com/questions/52622171/how-to-use-send-to-pass-a-string-like-password99tt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!