Re: Controlling WinAMP (WM_COPYDATA problem)

2005-06-30 Thread The Collector
Hi, i changed the code to this: -- from win32gui import FindWindow from win32api import SendMessage import struct import array hWnd = FindWindow('Winamp v1.x', None) def packData( dwData, item ): global cds, lpData lpData = array.array('c', item) lpData

Controlling WinAMP (WM_COPYDATA problem)

2005-06-30 Thread The Collector
Hi, I've been looking for almost two full days now to get full control of WinAMP using python. Simple play/stop functions are no problem. It's the WM_COPYDATA that's used by IPC_PLAYFILE (=add a file to the playlist) that's giving me troubles big time! My latest test code: ---