I am desperately trying to automate BSPlayer from my script.
I was successful in sending simple command ids to the BSPlayer window(volume up/down, play/pause, etc.), however I am not able to get the file name back.
Here is the BSPlayer API.
I was able to emulate in python the first parts, however the WM_COPYDATA doesn't work.
Here is my Python code:
copyDataCmd = COPYDATASTRUCT()
copyDataCmd.dwData = self.BSP_GetFileName
copyDataCmd.lpData = ""
copyDataCmd.cbData = 4
win32gui.SendMessage(self.playerWindowHandler, win32con.WM_COPYDATA,
ownHandler, copyDataCmd);
Obviously .lpData returns "" ...
What I am trying to emulate:
cds:TCOPYDATASTRUCT;
buf:array[0..MAX_PATH-1] of char;
adr:pointer; //<