arman68
19th September 2004, 23:34
I have been trying to control DVobSub/VSFilter externally for a couple of years now, and have finally found a way to do it!
Basically, all you need to do is register a shared message defined by the filter, and then send it to the filter window.
For example:
WM_DVSPREVSUB = RegisterWindowMessage(TEXT("WM_DVSPREVSUB"))
DVSWND = FindWindow("DVSWND", 0)
PostMessage(DVSWND, WM_DVSPREVSUB, 0, 0)
The possible messages are:
WM_DVSPREVSUB
WM_DVSNEXTSUB
WM_DVSHIDESUB
WM_DVSSHOWSUB
WM_DVSSHOWHIDESUB
I have made a small tool that will take 2 parameters on the command line, a message & a window handle, and send the message to the specified window. If you do not specify any parameter, it will display a form where you can enter the 2 parameters and test them.
Included in the package is a short description of valid messages and the window handle for DVobSub, and 2 batch files that call the tool to get the next subtitle, and toggle subs on/off.
Get it at http://www.savefile.com/redir/58698.zip
I use it with Girder, and at last I can control the subs with my remote on the HTPC. I know it is supposed to work with F13 to F17, but I have tried so many different ways of sending those keys to DVobSub without success; if anyone knows how to do it, it would be nice to know.
Basically, all you need to do is register a shared message defined by the filter, and then send it to the filter window.
For example:
WM_DVSPREVSUB = RegisterWindowMessage(TEXT("WM_DVSPREVSUB"))
DVSWND = FindWindow("DVSWND", 0)
PostMessage(DVSWND, WM_DVSPREVSUB, 0, 0)
The possible messages are:
WM_DVSPREVSUB
WM_DVSNEXTSUB
WM_DVSHIDESUB
WM_DVSSHOWSUB
WM_DVSSHOWHIDESUB
I have made a small tool that will take 2 parameters on the command line, a message & a window handle, and send the message to the specified window. If you do not specify any parameter, it will display a form where you can enter the 2 parameters and test them.
Included in the package is a short description of valid messages and the window handle for DVobSub, and 2 batch files that call the tool to get the next subtitle, and toggle subs on/off.
Get it at http://www.savefile.com/redir/58698.zip
I use it with Girder, and at last I can control the subs with my remote on the HTPC. I know it is supposed to work with F13 to F17, but I have tried so many different ways of sending those keys to DVobSub without success; if anyone knows how to do it, it would be nice to know.