mplayer classic embedded

Hi all,

New to skinbedder, but I love it so far. Having a bit of difficulty ironing out all of the bugs though. My goal is to use media player classic to play dvds. Due to the space limitation, I wasn't able to call mediaplayer + the path to my dvdrom directly in the ini, so I created a quick batch script that does just that. I then have skinbedder kill the cmd.exe window. This does embed the window, but it doesn't seem to be very stable.

I did search for a skin but didn't have any results (I'm less interested in a skin than just embedding the window into road runner). I figured I'd go ahead and ask before I go and possibly reinvent the wheel.

Here is what I have so far. Like I said, it embeds the window.. kinda.. but it also tends to double up with a mirror of the window uptop and some random weirdness. And then when it switches to the DVD Menu SB seems to lose it. I'm guessing that the window is changing names briefly there, and that's why.. is there something I can do to correct that as well?

under my skinbedder3 folder I created a dir called mpcDVD, and under that another dir called mpcWindow, each with correspondingly named ini files.

mpcDVD.ini

Code:

[MainForm]
;This is the Window Title (if a front-end embeds SKINbedder, this is the title it will need)
Caption=DVD - Media Player Classic
;This is the initail position of the form.
Top=90
Left=8
;This is the initial "usable" Width & Height of the form.
TopBorder=92
LeftBorder=8
RightBorder=786
BottomBorder=506
;This is the background color you will see while loading (RGB Color Format: $GGBBRR).
BackgroundColor=$FFFFFF
;You can set this to an image to show durring loading (until the Starup Script has run).
LoadingImage=
[Scripts]
;This is the startup script that tells SKINbedder what to run, embed, and skin with.
;StartUp=Run(c:\PROGRA~1\iNav\iGuidance\iGuidanceUMPC.exe),Embed(GooPsWindow:1000),wait(1000),Embed(GEMap:5000),LoadSkin(GEMap:Bottom)
StartUp=Run(c:\PROGRA~1\ROADRU~1\launchdvd.bat),wait(1000),kill(cmd.exe),Embed(mpcWindow:1000)
;This is the shutdown script that will run before SKINbedder exits.
ShutDown=Kill(mplayerc.exe)
;This will happen BEFORE hibernation
Hibernate=
;This will happen after resuming from hibernation
Resume=

mpcWindow.ini

Code:

[mpcWindow]
WindowClass=MediaPlayerClassicW
WindowTitle=DVD - Media Player Classic
;Width and Height are optional (you can just use all 4 borders instead).
Width=
Height=
;Borders are Optional (if you just set Width/Height it will auto-center).
;Any border you set will be ancored.
;If no width/Height nor boarders are set it will auto-stretch (as if borders are 0), but not anchor.
TopBorder=0
LeftBorder=0
RightBorder=0
BottomBorder=0
;Nudge values stretch the embedded image
NudgeUp=0
NudgeLeft=0
NudgeRight=0
NudgeDown=0
;Leave TransparentColorValue blank if not used (will save resources)
TransparentColorValue=
;Leave AlphatBlendValue blank if not used (255=Fully visable, 0=Invisable)
AlphaBlendValue=
;Set Visable to False if you want to hide the entire window
Visable=False