【问题标题】:How to launch Firefox Browser minimized with a .bat file?如何启动使用 .bat 文件最小化的 Firefox 浏览器?
【发布时间】:2016-03-02 14:14:57
【问题描述】:

我希望这个批处理文件最小化执行 Mozilla Firefox 的两个窗口(打开 http://google.com 的窗口和运行 iMacro google.iim 的窗口) 谢谢

    :loop 
    cls
    taskkill /F /IM Firefox.exe
    cls
    taskkill /F /IM crashreporter.exe
    cls
    TIMEOUT /T 5
    start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -private-window http://google.com imacros://run/?m=google.iim
    TIMEOUT /T 555
    GOTO loop

【问题讨论】:

    标签: batch-file batch-processing imacros


    【解决方案1】:

    您的命令启动一个标题以imacros ... 开头的Firefox。 你可以尝试使用sendkeys.bat

    :loop 
    cls
    taskkill /F /IM Firefox.exe
    cls
    taskkill /F /IM crashreporter.exe
    cls
    TIMEOUT /T 5
    start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -private-window http://google.com imacros://run/?m=google.iim
    TIMEOUT /T 5
    call sendkeys.bat "imacros" "% "
    call sendkeys.bat "imacros" "n"
    TIMEOUT /T 555
    GOTO loop
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-14
      • 1970-01-01
      • 2021-11-11
      • 1970-01-01
      • 2020-05-13
      • 2016-04-30
      • 2010-11-04
      • 2014-03-20
      相关资源
      最近更新 更多