Jump to content
Sign in to follow this  

Help with arrays

Recommended Posts


Sorry if this has been posted, I couldn't find it anywhere on the site or help file.

I am using the WinList function to retrieve all active windows

How do I count how many windows are in the array?


I have 3 windows active, "notepad", "firefox" and "windows live messenger", leaving me with a total of 3


$windows = WinList()
MsgBox (32, "", $windows[1])
MsgBox (32, "", $windows[2])
MsgBox (32, "", $windows[3])

How can I find out what the maximum in the array is?

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