Ichibann
Ichibann

Reputation: 4451

Getting information about new window opened

Getting active window information in Java allows me to check what an active window is.

What I need is to run thread in background and check if any new window appeared. How can this be done?

I need a method to get my thread notified that a new window appeared.

Upvotes: 0

Views: 95

Answers (1)

Garrett Hall
Garrett Hall

Reputation: 30022

The easiest way is to poll the windows and check if any changed. I don't know of any way to get notified about new windows but you can get notified about new processes. Try one of these two API calls.

Upvotes: 1

Related Questions