Champak Posted June 17, 2008 Posted June 17, 2008 I'm tired of messing with the wmp object for dvd, so I found MSVidWebDVD. But I don't know how to activate it as an object in autoit. Some help please?Here is the vb code"Option Explicit ' Create the DVD and Adm objects. Be sure to create the DVD using ' WithEvents to access object-specific events. Dim WithEvents oVidWebDVD As MSVidWebDVD Dim oVidWebAdm As MSVidWebDVDAdm ' Build the graph to prepare for playback. Does not start playback. Sub BuildGraph() ' First insert the DVD Navigator filter. oVideoControl.View ("DVD:") ' Then enable closed-captioning feature. ' All features must be added before Build or Run methods. Call AddCC ' Next build the graph. oVideoControl.Build ' Finally, instantiate the control objects. Set oVidWebDVD = oVideoControl.InputActive Set oVidWebAdm = oVidWebDVD.DVDAdm End Sub ' Start playback from Play button. Sub cmdRun_Click() oVideoControl.Run End SubI believe this is the best page to get basic initialinfo:http://msdn.microsoft.com/en-us/library/ms782600(VS.85).aspx
Champak Posted June 26, 2008 Author Posted June 26, 2008 (edited) Forgot about this post, here is the solution to get it running. After this, you call the methods/functions you need. $oDVD1 = ObjCreate("MSVidCtl.MSVidCtl.1") $oDVD2 = ObjCreate("MSVidCtl.MSVidWebDVD.1") $oDVD3 = ObjCreate("MSWebDVD.MSDVDAdm.1");Not needed unless you need administration functions $oDVD1.View ("DVD:") $oDVD1.Build $oDVD2 = $oDVD1.InputActive;Get msvidwebdvd video functions working $oDVD3 = $oDVD2.DVDAdm;Not needed unless you need administration functions $oDVD2.DVDDirectory = "G:\\VIDEO_TS";Not needed unless you have multiple Roms $oDVD1.Run Edited June 26, 2008 by Champak
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now