Examples of GetWindowTextA()


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

                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);
                    if (winTitle.indexOf(title) >= 0 && winTitle.toLowerCase().indexOf(
                        (browserName.toLowerCase().indexOf("ie") >=0 ? "internet explorer" : browserName)) >= 0) {
                      LOGGER.info("** Match " + browserName + " **");
                      threadLocal.set(w);
View Full Code Here

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

                          // skip IE issue, because it may have two same winTitle
                          if (threadLocal.get() != null) return true;
                         
                          byte[] titleBuff = new byte[1024];
                          User32Extra u32extra = User32Extra.INSTANCE;
                          u32extra.GetWindowTextA(hWnd, titleBuff, titleBuff.length);
                          String winTitle = Native.toString(titleBuff);
                         
                         
                          if (winTitle.indexOf(title) >= 0 && winTitle.toLowerCase().indexOf(
                              (browserName.toLowerCase().indexOf("ie") >=0 ? "internet explorer" : browserName)) >= 0) {
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.