I want my Java program to know when a particular program 开发者_C百科has its window maximized or minimized or may be is running in exclusive full screen mode(most importantly when not). How to go about it? If its not possible than only if i know that if any program is running in full screen exclusive mode or not!
Write a WindowListener - this will show you how.
i know its a little late to answer this but have a look at this In Java Swing how do you get a Win32 window handle (hwnd) reference to a window? once you have the window handle/reference you can perform operations on the window. Its definitely possible to do this since Spy++ that comes along with Visual Studio does this.
精彩评论