Jump to content
Sign in to follow this  
closeupman

Windows

Recommended Posts

Is there a way to have an array of windows title bars. So i can keep track of count of windows open and /or check other misc. stuff?

I though of any array, but autoit doesn't allow dynamically allocated arrays.

Would I have to do an api call or is it possible w/autoit?

thanks,

david :idiot:

Share this post


Link to post
Share on other sites

Newest AutoIt beta has a WinList function :idiot:

WinList ( ["title" [, "text"]] )

If no title and text is given then all top-level windows are returned.

The array returned is two-dimensional and is made up as follows:

$array[0][0] = Number of windows returned

$array[1][0] = 1st window title

$array[1][1] = 1st window handle (HWND)

$array[2][0] = 1st window title

$array[2][1] = 1st window handle (HWND)

...

$array[n][0] = nth window title

$array[n][1] = nth window handle (HWND)


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

That's great! A WinList() function. I was looking for something like that a while back. Thanks again AutoIt.

Ian


"Blessed be the name of the Lord" - Job 1:21Check out Search IMF

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...