Re: Encoder SDK
- From: "Alessandro Angeli [MVP::DigitalMedia]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 22:32:09 +0100
Mike Lowery wrote:
> I'm needing to write an app that will stop and start WME
> (or just the encoding process) at specific times. I
> prefer this app be able to control a running instance of
> WME and not be an all-inclusive encoding app itself. The
> SDK seems to show examples of the latter but not the
> former. Is it possible to get a handle to an instance of
> WME and use the SDK to control it? If not, does anyone
> have other suggestions? I know I could probably write a
> script that starts or stops WME based on Windows
> Scheduler, but that's kind of ugly and I'd rather just
> write my own VB.Net app that controls this.
You can just send WME's window WM_COMMAND messages
corresponding to the menu items and you can find out the
item IDs using the Spy tool in the free Platform SDK or the
Spy++ tool in VisualStudio.
The System.Windows.Forms.Message struct wraps a Windows
message but I don't know of any managed SendMessage() and
FindWindow() wrappers so you need to call SendMessage() in
User32.dll via P/Invoke to send the message and FindWindow()
to find the HWND of the window.
--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
.
- Follow-Ups:
- Re: Encoder SDK
- From: Mike Lowery
- Re: Encoder SDK
- References:
- Encoder SDK
- From: Mike Lowery
- Encoder SDK
- Prev by Date: Encoder SDK
- Next by Date: protect wma/wmv with DRM
- Previous by thread: Encoder SDK
- Next by thread: Re: Encoder SDK
- Index(es):
Relevant Pages
|