Jump to content

Instant Message answering machine help


Guest rob_liberti
 Share

Recommended Posts

Guest rob_liberti

In my situation, there are multiple windows with the same classname. I want to be able to get them all into an array, so I can discard the parent process based on the title, and then send the rest a reply.

I thought WinList might help but I can't determine which one of those has the specific classname I am looking for. I can try to use the example WinGetHandle, but I don't know how to use that to get an array of all of them.

Any ideas?

Edited by rob_liberti
Link to comment
Share on other sites

Welcome to the forums Rob!

You were on the right track -- all you need is a way to pass a class name to the WinList() function. Here's how you can do precisely that:

opt('winTitleMatchMode', 4)
$array = winList('classname=Progman')
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...