Examples of GetForegroundWindow()


Examples of org.zkoss.ztl.jna.User32Extra.GetForegroundWindow()

          if (values.size() > 1) {
                final User32Extra user32Extra = User32Extra.INSTANCE;
                final String title = values.get(0);
                final String browserName = values.get(1);
                threadLocal.set(null); // reset
                HWND w = user32Extra.GetForegroundWindow();
                if (w != null) {
                  byte[] titleBuff = new byte[1024];
                  User32Extra u32extra = User32Extra.INSTANCE;
                    u32extra.GetWindowTextA(w, titleBuff, titleBuff.length);
                    String winTitle = Native.toString(titleBuff);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.