This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Accessing/Controlling Other windows in XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing/Controlling Other windows in XP" Watch "Accessing/Controlling Other windows in XP" New topic
Author

Accessing/Controlling Other windows in XP

Micho Lee
Greenhorn

Joined: Oct 21, 2003
Posts: 14
Hello:
I was wondering if someone could give me some direction in leaning how to access and control other windows using a separate program. For instance, I want to be able to detect when a window taskbar button blinks (saying something happened), open that window, then capture (alt-printscreen) and print a picture of that window into a file. Can someone give me some sample code or direct me to documents that would help me do this? I�m working with Java, so java related help would be most appreciated.
Thanks a bunch in advance!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

The concepts you're dealing with are inherently platform-specific, so it should come as no surprise that Java has no APIs to represent them.
If you want to to do this only on one specific platform, like Windows, for example, then the only way to do it would be to use JNI to call OS-specific functions to do the work.


[Jess in Action][AskingGoodQuestions]
 
GeeCON Prague 2014
 
subject: Accessing/Controlling Other windows in XP