James Cafferty
James Cafferty

Reputation: 21

autoit- How to minimize windows open on ff.au3?

Here my code:

#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

According to the script, when I visit google, it would open the first link followed by the other links; now how do I have the windows minimized once they are open.

Also I keep getting ErrorstdOut any solutions to this?

Upvotes: 2

Views: 2046

Answers (1)

lippea
lippea

Reputation: 31

Try WinSetState ( "title", "text", flag ) Here is the link for the api: http://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm

A sample is : WinSetState("Calculator", "", @SW_MINIMIZE )

Upvotes: 2

Related Questions