-- enoding:utf-8 -- 生成 buffer 对象 import win32con from win32gui import PyMakeBuffer, SendMessage, PyGetBufferAddressAndLen, PyGetString length = 10000 hWnd=68214 hWnd=68302 buf = PyMakeBuffer(length) length2 = SendMessage(hWnd, win32con.WM_GETTEXT, le…