This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The answer is "no", unfortunately. The way to manipulate a Windows GUI app is by sending it window events, and Java, being a cross-platform language, doesn't have a mechanism for doing this platform-specific thing.
There are plenty of Windows automation and test tools that can do this for you; perhaps someone else can suggest some. Or, of course, you can write a Windows app which does it.
Now, I should say that it's possible to write glue code in C which lets Java code call native platform code, and it's certainly possible that someone has a product which could be used to do what you need. But unless you really, really, really need to use Java for some reason, it'd be much simpler to go another route.
Well, the only reason I asked abou Java is only because its the language that I am most familiar with... I've just started to pickup on some C#, but I'm still not that comfortable with it. Is there something that you would recommend? Maybe a scripting language or something high level?
author and iconoclast
I'm no Windows expert, but I imagine C# (which is awfully similar to Java, really) would work fine.
Joined: Dec 23, 2004
hm so how would I go about recognizing the button's on the GUI? It doesn't seem like there is a way to do this if the application is being built on a level above the GUI. Usually you would need to go one level lower... right?