Jump to content

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?

Example:

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

Therefor,

$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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...