3 messages in net.java.dev.jna.usersRe: [jna-users] info about other windows
FromSent OnAttachments
Guan EglesioJan 20, 2009 12:17 pm 
Stefan EndrullisJan 21, 2009 1:25 am 
rzoJan 21, 2009 2:57 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] info about other windowsActions...
From:Stefan Endrullis (ste@endrullis.de)
Date:Jan 21, 2009 1:25:34 am
List:net.java.dev.jna.users

Hi Guan,

Guan Eglesio schrieb:

Im writing a java app that needs some OS specific info (winxp);

- information about all the windows that are currently open (firefox/itunes/notepas/etc)

for instance there: size/location/state etc.

If you would ask for the same under Linux, I could suggest you the "x11" project in the "contrib" section. There you have all you need to get easily to this information.

Can i do this with JNA?

But it should be also possible under Windows. You just have to write the JNA mappings for necessary C libraries.

BTW there's already a class in the examples section which allows you to set window transparency and shape. Maybe this file (especially the inner class W32WindowUtils) could be a good starting point. The location of the file is: trunk/jnalib/src/com/sun/jna/examples/WindowUtils.java

Regards, Stefan