Sign in to follow this  
Followers 0
UPSman2

whats up with winlist?

4 posts in this topic

#1 ·  Posted (edited)

why does

$a = WinList ()
MsgBox(0,"",$a[0][0])

return 173 when i have like 3 windows open

also winlist is being buggy for me in other areas (maybe its just my pc) but can someone confirm or deny or explain this?

Edited by UPSman2

Share this post


Link to post
Share on other sites



why does

$a = WinList ()
MsgBox(0,"",$a[0][0])

return 173 when i have like 3 windows open

also winlist is being buggy for me in other areas (maybe its just my pc) but can someone confirm or deny or explain this?

Winlist isn't buggy, only how you use it is.

[0][0] contains all the windows that are open, just because you can't see them, doesn't mean they don't exist.

If you only want to see the ones visible, then run the example in the help file and see how it uses BitAnd() (IsVisible) to return only visible windows.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Winlist isn't buggy, only how you use it is.

[0][0] contains all the windows that are open, just because you can't see them, doesn't mean they don't exist.

If you only want to see the ones visible, then run the example in the help file and see how it uses BitAnd() (IsVisible) to return only visible windows.

ok, thank you *bow*

Share this post


Link to post
Share on other sites

Lol, I made a mistake today, I tried to hide each window I got. I also believed it will hide only visibles windows, as you expected too ;]

But wow, it hided like 200 windows xD no more taskbar, no more control tasks, etc Lol

take care with it :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0