Jason’s musings

I just need a little time

Archive for the ‘Python’ Category

Python and windows

with 5 comments

It's a shame the following doesn't just work:

import win32gui
import win32api
import win32con
import struct
msnui = win32gui.FindWindowEx(0, 0, "MsnMsgrUIManager", "")
msndata = struct.pack('L6sB',0x547,"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 I was trying to do was to change the "Now Playing" thingy in MSN messenger. Just for fun. I seen it in the 0.85 branch of the VLC source code.


Written by jasonmc

May 9, 2006 at 12:14 am

Posted in Computing, General, Python