Jump to content

Recommended Posts

Posted (edited)

Hi again

Two options for you to consider

1) in a continuous loop check the number of windows that exist using winlist or perhaps check processes using processlist. When the number changes a window has been created or destroyed.

2) I have killed my explorer and tested Kafu's Method (last post). It appears to work.

Good luck

Picea892

Edited by picea892
  • 2 weeks later...
Posted

Hi again

Two options for you to consider

1) in a continuous loop check the number of windows that exist using winlist or perhaps check processes using processlist. When the number changes a window has been created or destroyed.

2) I have killed my explorer and tested Kafu's Method (last post). It appears to work.

Good luck

Picea892

I'm sorry it's taken this long to reply. I had to recreate my program again from scratch. I've now gotten back to the point where this is important.

Anyway, you're first method is viable and also, in my opinion, very clever. The only problem is that there would then be no way way to handle when windows change their titles or when child windows pop up.

The second method, Kafu's Method, maybe viable, only it doesn't specifically say when a window is destroyed or created, but when any gui control or other object is destroyed or created as well.

So I'm at a loss. Not sure what to do. I suppose I'll use your method unless there's something I'm missing about Kafu's method that would make it more usable.

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
  • Recently Browsing   0 members

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