开发者

Window operation notification in Java

开发者 https://www.devze.com 2023-02-08 13:54 出处:网络
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 abou

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消