View Full Version : New BSPlayer with Windows Messages
Ron
October 13th, 2002, 12:55 PM
and what if I release the source code to the copydata plugin would someone feel like updating the plugin to support this ?
Ron
October 13th, 2002, 12:55 PM
Ah we where both tricked into thinking the wrong way around :-) Receiving a wm_copydata isn't support, but sending works just fine! :-)
Ron
October 13th, 2002, 12:55 PM
Ah look at that, I wasn't aware that WM_COPYDATA worked that way too. No currently this is not supported. It however should not be that hard to implement ( if one has time )
Mark F
October 13th, 2002, 12:55 PM
Nice work, vynce!
Looking at the file you pointed to, you should be able to retrieve information into a girder register too. The only commands that won't work are the ones using CopyData. They appear to require access to a field (dwData) the CopyData plugin (1.00) doesn't support. :(
Mark F
October 13th, 2002, 12:55 PM
When I'm wrong, I'm WRONG! :oops:
Of course you can do what is needed via the CopyData plugin. Doh!
Sorry.
vynce
October 13th, 2002, 12:55 PM
For those of you that use BSPlayer there is a new version available (484) that adds windows message support. It can now be controlled in a similar way to Winamp :D
The header file containing the windows message numbers is in the SDK directory.
BSPlayer (http://beta.bsplayer.org/)
vynce
October 13th, 2002, 12:55 PM
Ok, well I've fiddled with it for a while and I cannot figure out which message numbers to use where. The windows command capture function in Girder doesn't see these commands, so that doesn't help. Here are some lines from the header file. The whole header file is *here* (http://www.vynce.kicks-ass.net/girder/bsp.h) if more info is needed.
#define BSP_Play 20
#define BSP_Pause 21
#define BSP_Stop 22
I can see that the number at the end of each of those lines is what relates to that specific action, but how do you know what goes in the other boxes in Girder?
Thanks
vynce
October 13th, 2002, 12:55 PM
I was able to answer my own question :) . Here is what I did. Use the SendMessage plugin with the following settings:
Message number: 1026 (WM_USER is 1024, at the top of the header file it says WM_USER + 2, so 1024+2=1026)
wParam: the message number that you want to send (eg. 20 for play)
lParam: 0
vynce
October 13th, 2002, 12:55 PM
So in other words I wouldn't be able to retrieve the filename of the currently playing movie since girder would need to receive a wm_copydata message - which doesn't seem possible at the moment (right?).
// COPYDATASTRUCT cds;
// char buf[MAX_PATH];
// void *adr;
//
// adr=&buf;
// cds.dwData=BSP_GetFileName;
// cds.lpData=&adr;
// cds.cbData=4;
// SendMessage(bsp_hand,WM_COPYDATA,appHWND,(LPARAM)&cds);
// available in BSPlayer version 0.84.484+
//
// appHWND is calling application window handle
// File name will be copied to buf
//
// Get open file name
#define BSP_GetFileName 0x1010B
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.