INNER CODE UNIT · Python

h

Qwejay/Qflow · main.py:328

        w, h = rect.right - rect.left, rect.bottom - rect.top
        if w < 10 or h < 10: return False 
        length = user32.GetWindowTextLengthW(hwnd)
        if length == 0 and cls_name == 'ApplicationFrameWindow': return False
        return True

    @staticmethod
    def get_all_windows():
        results = []
        pid_map = WindowEngine._get_process_map()
        my_pid = os.getpid()
        def callback(hwnd, extra):
            if WindowEngine.is_window_valid_target(hwnd, my_pid):
                info = WindowEngine.get_window_info(hwnd, pid_map)
                if info:
                    info['rect'] = WindowEngine.get_window_rect(hwnd)
                    if info['rect']: results.append(info)
            return True

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…