0

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.

Community
  • 1
  • 1
Ichibann
  • 4,371
  • 9
  • 32
  • 39

1 Answers1

1

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.

Garrett Hall
  • 29,524
  • 10
  • 61
  • 76