Entries Tagged as 'Python'

May 9, 2006

Python and windows

It's a shame the following doesn't just work:
import win32gui
import win32api
import win32con
import struct
msnui = win32gui.FindWindowEx(0, 0, "MsnMsgrUIManager", "&quot
msndata = struct.pack('L6sB',0×547,"python",6)
win32api.SendMessage(msnui, win32con.WM_COPYDATA, 0, msndata)
Instead it seems I'll need to get the ctypes foreign module and use ARRAY and POINTER to supply arguments to the function just like you would in C. Though I'll dig deeper….
Oh, what [...]