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

h = 0x8c4c02
rect = win32gui.GetWindowRect(h)
print('AutoVLBS Rect:', rect)
img = ImageGrab.grab(bbox=rect)
art_path = r'C:\Users\Admin\.gemini\antigravity\brain\5f637e30-06d3-43e8-a064-a259fea7be1a\inspect_vlbs_live_4accounts.png'
img.save(art_path)
print('Saved to', art_path)
