import ctypes, win32gui, commctrl, sys
sys.stdout.reconfigure(encoding='utf-8')
user32 = ctypes.windll.user32
hdesk = user32.OpenInputDesktop(0, False, 0x01FF)
if hdesk: user32.SetThreadDesktop(hdesk)

target_hwnd = 0x8c4c02
print("AutoVLBS HWND:", hex(target_hwnd), win32gui.GetWindowText(target_hwnd))

def cb(h, _):
    txt = win32gui.GetWindowText(h)
    cls = win32gui.GetClassName(h)
    rect = win32gui.GetWindowRect(h)
    vis = win32gui.IsWindowVisible(h)
    if 'list' in cls.lower() or 'tree' in cls.lower() or 'combo' in cls.lower() or 'edit' in cls.lower() or txt:
        print(f"Child {hex(h)} | Cls: {cls} | Rect: {rect} | Vis: {vis} | Text: '{txt}'")
    return True

win32gui.EnumChildWindows(target_hwnd, cb, 0)
