微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

尝试运行 SENDKEYS 命令并得到:“{TAB}””不是内部或外部命令、程序或批处理文件

如何解决尝试运行 SENDKEYS 命令并得到:“{TAB}””不是内部或外部命令、程序或批处理文件

这是我要运行的代码

@if (@CodeSection == @Batch) @then

@echo 关闭

for /F %%f in (spsip.txt) do ( 回声。 echo 启动 Internet Explorer for: %%f? 选择 /m “你确定吗”

    if not errorlevel 2 (
    
    rem Use %sendKeys% to send keys to the keyboard buffer
    set SendKeys=C:\Windows\System32\cscript.exe //nologo //E:JScript "%~F0"
    START "" "http://%%f"
    rem the script only works if the application in question is the active window.
    timeout /t 10
    rem use the tab key to move the cursor to the login and password inputs. Most htmls
    rem %sendKeys% "{TAB}"
    rem Now you can have it send the actual username/password to input Box
    %sendKeys% "{TAB}"
    %sendKeys% "{TAB}"
    %sendKeys% "{TAB}"
    %sendKeys% "{TAB}"
    %sendKeys% "{TAB}"
    %sendKeys% "{TAB}"
    %sendKeys% "Admin"
    %sendKeys% "{TAB}"
    %sendKeys% "password"
    %sendKeys% "{ENTER}"

)

)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。