title
Products            Buy            Support Forum            Professional            About            Codec Central
 

[Q]dmC Scripting Object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Unregistered

    [Q]dmC Scripting Object

    Hello All,
    I have been playing with the dmCScripting object to automate conversion of many (>300) files. (Yes I know that there is a way to do it in dmC already by dmC seesm to have a bug that makes it impractical for my needs (see earlier thread))

    I am successfully converting one file at time using 'AddFromFile()' and then GoConversion()

    I am now tweaking my proigie ;-) and want to allow the user to be able to cancel very long conversions.
    When I press the Cancel buooton on the 'dmC conversion screen' dmC dutifully cancel its conversion but I cannot seem to get my program to detect that that has happened!

    I assumed that WasConvError() would retun an error when 'cancel' was pressed in the dmC but that does not seem to be happeing.

    Can any dmC guru suggest how I can detect that the user pressed cancel on the dmC?

    Thanks and Kind Regards,

    iv
  • Spoon
    Administrator
    • Apr 2002
    • 44574

    #2
    Re: [Q]dmC Scripting Object

    Hmmmmm, scripting was designed to be fully automated, I didn't think that someone would press cancel, so it does not report that - I cannot think of any way to detect part encoded files...
    Spoon
    www.dbpoweramp.com

    Comment

    • Unregistered

      #3
      Re: [Q]dmC Scripting Object

      Originally posted by Spoon
      <snip> I cannot think of any way to detect part encoded files...
      Well the GoConversion() call retunrs immedately the Cancel button is pressed - so the dmC does the correct thing there ;-)
      I waswas hoping that it is a 'simple' matter of you passing and an error code though that the WasConvError() call can detect an report.
      IV

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44574

        #4
        Re: [Q]dmC Scripting Object

        I can add it to the wish list.
        Spoon
        www.dbpoweramp.com

        Comment

        • Unregistered

          #5
          Re: [Q]dmC Scripting Object

          Originally posted by Spoon
          I can add it to the wish list.
          GREAT! Thank you!
          iv

          Comment

          Working...

          ]]>