spy++可以获取控件ID 我这里是0x3F8
F_Bentrust是母窗体句柄
E_Ssymbol = win32gui.GetDlgItem(F_Bentrust, 0x3F8) buff =ctypes.create_unicode_buffer(64) win32gui.SendMessage(E_Ssymbol, win32con.WM_GETTEXT, 32, buff) print (buff.value)
时间: 2024-10-22 19:22:00
spy++可以获取控件ID 我这里是0x3F8
F_Bentrust是母窗体句柄
E_Ssymbol = win32gui.GetDlgItem(F_Bentrust, 0x3F8) buff =ctypes.create_unicode_buffer(64) win32gui.SendMessage(E_Ssymbol, win32con.WM_GETTEXT, 32, buff) print (buff.value)