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)
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)
转载于:https://www.cnblogs.com/hyfwin/p/6111872.html