Announcement

Collapse
No announcement yet.

activate the play button in powerdvd

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

  • activate the play button in powerdvd

    Hello i would like to activate the play button in my script after mouting iso and launching application?? Anyone have an idea???
    Thanks for your response

  • #2
    I searched for command line switches for PowerDVD and didn't find anything. So my conclusion is that you would have to simulate/send keystrokes to the application with a macro program such as AutoIt3 or use another DVD playback software which supports command line parameters.


    Here is an example script I found from the first google result. The Send("{ENTER}") part seems to be the key to starting playback.
    Code:
    ; start the DVD player full screened
       Run("C:\Program Files\CyberLink\PowerDVD\PowerDVD.exe","",@SW_MAXIMIZE)
    
    ; if the app window is not up in 60 seconds - WinWait returns 0
    ; if the app window comes up before then - the script continues
       If WinWait("PowerDVD","",60) = 0 Then
         MsgBox(48, "Utter Failure", "DVD application has failed to start.  Script will be terminated")
         WinKill("PowerDVD")
         Terminate() 
        ;
        ; optional msgbox here
        ;
       EndIf
    
    
    ; main loop
    While 1
       Check_Window()
       Send("{ENTER}"); "Enter" will start the movie - let it run for $secs
    Underheaven
    New User
    Last edited by Underheaven; 25.01.2008, 05:09.
    the modern world:
    net helpmsg 4006

    Comment


    • #3
      Alternatively, if you run the DVD playback program first (in this case, PowerDVD), then mount the image, it should detect the new "disc" inserted and autostart.

      Comment


      • #4
        Re: activate the play button in powerdvd

        YOUR idea is much simpler Jito
        the modern world:
        net helpmsg 4006

        Comment


        • #5
          Yeah, I'm a lazy guy, and prefer simple stuff.

          Comment


          • #6
            thanks guys i'm a lazy guy too but in case of hddvd or blueray iso, the autostart doesn't works. I've tried the {enter} order in parameters but nothing.

            Comment


            • #7
              The {enter} thing isn't a parameter for powerdvd its a script you would use in a macro program (a program that simulates mouse clicks or keyboard presses).
              the modern world:
              net helpmsg 4006

              Comment

              Working...
              X