Raspberry pi 树莓皮;Xdotool-用户名和密码;密码输入

Raspberry pi 树莓皮;Xdotool-用户名和密码;密码输入,raspberry-pi,xdotool,Raspberry Pi,Xdotool,好的,我事先很抱歉,但我很累,现在绝望了,请帮忙 我跟随各种论坛试图建立一个信息亭,并有一个浏览器页面自动加载等所有工作正常,直到我得到提示的用户名和密码。 我尝试了各种各样的西多醇组合,但似乎没有任何进展 听起来很简单: 搜索“用户名”或将焦点转移到“用户名”字段中查找windows id等,然后输入“用户名” 键入“用户名” 然后键 在密码字段框中输入“密码” 键入“密码” 然后键或 我尝试过的一些脚本位,不确定语法是否正确,我无法对其进行故障排除 #!/bin/bash #Enter Us

好的,我事先很抱歉,但我很累,现在绝望了,请帮忙

我跟随各种论坛试图建立一个信息亭,并有一个浏览器页面自动加载等所有工作正常,直到我得到提示的用户名和密码。 我尝试了各种各样的西多醇组合,但似乎没有任何进展

听起来很简单:

  • 搜索“用户名”或将焦点转移到“用户名”字段中查找windows 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
    
    #/bin/bash
    #输入用户名,然后输入选项卡,然后输入密码,然后输入
    #$xdotool搜索“登录”
    $xdotool搜索“用户名”
    $xdotool windowfocus
    $xdotool类型--延迟100
    #$xdotool getactivewindow
    #$xdotool类型--延迟100--窗口getwindoid
    #$xdool类型
    #$xdotool密钥KP\U选项卡
    #$xdool类型
    #$xdotool密钥KP\U返回
    #脚本结束
    
    只是检查了3天,我不清楚我在问什么吗?有人能帮我回答这个问题吗?