Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windowevents from other applications?

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,

This question comes more or less out of my previous post.
I figured that I should be able to catch events from windows other then my application. So I implemented the WindowListener interface but it only gives me events of the active application. I want to go beyond that..
The more I search , the more I start to think it is simply not possible.. Can anyone confirm ?

Greetz,
img


NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

"Those who say they understand chess, understand nothing"

-- Robert HUBNER
 
It is not possible using a pure Java solution. It can be done with JNI and C++. Also, you will only get events fired from the window that the WindowListener is connected to. So if you had 2 Java windows, both have to have a WindowListener in order to receive events from them. Hope it helps!


Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top