autoit-如何最小化 ff.au3 上打开的窗口?

标签 autoit

这是我的代码:

#Include <FF.au3>

_FFStart()

If _FFIsConnected() Then
    $sStringToSearch = "www.google.com"
    sleep (2000)
    If _FFSearch($sStringToSearch) Then
        ; add a new tab with an URL
        _FFWindowOpen("http://ff-au3-example.thorsten-willert.de/")
        Sleep(1000)
        _FFWindowOpen("www.msn.com")
        Sleep(1000)
        _FFWindowOpen("www.yahoo.com")
        Sleep(1000)
        _FFWindowOpen("google.com")
    EndIf
Else
EndIf

根据脚本,当我访问google时,它会打开第一个链接,然后打开其他链接;现在如何让窗口在打开后最小化。

我还不断收到 ErrorstdOut 的任何解决方案吗?

最佳答案

尝试WinSetState(“标题”,“文本”,标志) 以下是 api 的链接:http://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm

示例是: WinSetState("计算器", "", @SW_MINIMIZE )

关于autoit-如何最小化 ff.au3 上打开的窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13440048/

相关文章:

testing - AutoIT 测试帮助

autoit - RunWait() - 添加参数

shell - 批处理 : start application doesn't show a GUI

windows - 如何使用 AutoIt 在 Windows 中打开 "Run Window"?

c# - AutoIT 或 User32 按钮偶尔点击工作

autoit - 为什么我的 AutoIt 脚本不处理其命令行参数?

internet-explorer - 在浏览器窗口保持最小化的情况下自动化网页(需要主动焦点)

vb.net - 无法使用 AutoIt 从 Windows 窗体的下拉列表中选择值

maven - Jacob dll 中的 EXCEPTION_ACCESS_VIOLATION 在 Jenkins 管道中使用 VM