Sign in to follow this  
Followers 0
Beege

Help with COM objects

4 posts in this topic

Can anyone help me with using the objects for a program called dbpowerAMP? I am so confused with the format. Any help or basic examples would be great.

all i can get to work is creating the object.

$converter = ObjCreate('DMCScripting.converter')

if IsObj($converter) then MsgBox(0,'','Its an object')

Ya... Pretty sweet. Here is a link to all the info of the object:

dbpowerAMP Scripting

Thanks

Share this post


Link to post
Share on other sites



I ran one of their samples through VAConvert:

; Create $dMC Object
 $dMC = ObjCreate("dMCScripting.Converter")

; Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
$dMC.VolumeNormalize = 0
$dMC.PreserveTags = 1
$dMC.DeleteSourceFiles = 0

; Set Output Folder (to C:\Conversion123 )
$dMC.ConvertToFolder = 1
$dMC.ToFolder = "C:\Conversion123"

; Add My Files to Convert
 $dMC.AddFromFile("C:\AudioFile1.mp3")
 $dMC.AddFromFile("C:\AudioFile2.mp3")

; Convert To Wave (No option page, Want Overwrite page, Want finished, Want Errors)
 $dMC.GoConversion("Wave", 1, 0, 0, 0)


[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

Can't thank you enough!! you the man!

Share this post


Link to post
Share on other sites

To help with com errors I'd suggest using something like this.

#include <IE.au3>

_IEErrorHandlerRegister()
$odBpowerAMP = ObjCreate("dMCScripting.Converter")
If Not IsObj($odBpowerAMP) Then
    MsgBox(48, "Error", "Unable to create dMCScripting object.")
    Exit
EndIf

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0