2

这是我的代码:

#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

根据脚本,当我访问谷歌时,它会打开第一个链接,然后是其他链接;现在,一旦它们打开,我如何将它们最小化。

我也不断收到 ErrorstdOut 任何解决方案?

4

1 回答 1

2

试试 WinSetState ( "title", "text", flag ) 这里是 api 的链接:http ://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm

一个示例是: WinSetState("Calculator", "", @SW_MINIMIZE )

于 2013-04-17T04:31:46.090 回答