Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

WinList() problem

$
0
0
I'm handling multiple firefox windows with autoit through the function Winlist('Mozilla Firefox").

But when Firefox isn't connected to internet or has a connection error, Winlist("Mozilla Firefox") doesn't get
that firefox window as an active window for some reason although the title is: "Problem loading page - Mozilla Firefox".

AutoitCode doesn't add the Tabs to align the code it seems....

[ autoit ]         
Func MakeHandles() Local $var = WinList("Mozilla Firefox") Local $List[$windows + 1] $total = 0 For $i = 1 To $var[0][0] If IsVisible($var[$i][1]) Then $list[$total + 1] = $var[$i][1] $total = $total + 1 EndIf Next $list[0] = $total Return $List EndFunc Func IsVisible($handle) If BitAND(WinGetState($handle), 2) Then Return 1 Else Return 0 EndIf EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>