Showing results 1 to 7 of 7

Thread: activate the play button in powerdvd

  1. #1

    Default 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. #2

    Default

    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
    Last edited by Underheaven : 25.01.2008 at 04:09
    the modern world:
    net helpmsg 4006

  3. #3
    Master
    Jito463's Avatar
    Join Date
    24.05.2005
    Posts
    1,626

    Default

    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.

  4. #4

    Default Re: activate the play button in powerdvd

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

  5. #5
    Master
    Jito463's Avatar
    Join Date
    24.05.2005
    Posts
    1,626

    Default

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

  6. #6

    Default

    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.

  7. #7

    Default

    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

Bookmarks

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •