问题描述
好吧,对不起,但我很累,现在已经绝望了Noobie-请帮助。
我在各种论坛上尝试建立自助服务站并自动加载浏览器页面等。所有工作都进行得很好,直到提示用户名和密码。 我已经尝试过使用xdotool进行各种组合,但似乎无法取得任何进展。
听起来很简单:
- 搜索“用户名”或将焦点查找窗口ID移至“用户名”字段,然后输入“用户名” 输入“用户名”
- 然后键
- 在“密码”字段框中,输入“密码” 输入“密码”
- 然后按键或
我尝试过一些脚本位,不确定语法是否正确,我无法对其进行故障排除。
#!/bin/bash
#Enter Username then TAB then Password then ENTER
#$ xdotool search "Sign In"
$ xdotool search "Username"
$ xdotool windowfocus
$ xdotool type --delay 100 <username>
#$ xdotool getactivewindow
#$ xdotool type --delay 100 --window getwindoid <username>
#$ xdotool type <username>
#$ xdotool key KP_Tab
#$ xdotool type <password>
#$ xdotool key KP_Return
# End of script
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)