PDA

View Full Version : activate the play button in powerdvd



xpress92
24.01.2008, 18:04
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

Underheaven
25.01.2008, 04:02
I searched (http://www.google.com/search?hl=en&q=powerdvd+command+line+switches) 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 (http://www.google.com/search?hl=en&q=powerdvd+pause+autoit). The Send("{ENTER}") part seems to be the key to starting playback.

; 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

Jito463
25.01.2008, 05:01
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.

Underheaven
25.01.2008, 17:32
YOUR idea is much simpler Jito http://www.daemon-tools.cc/dtcc/images/icons/icon12.gif

Jito463
25.01.2008, 18:51
Yeah, I'm a lazy guy, and prefer simple stuff. :D

xpress92
26.01.2008, 17:01
thanks guys i'm a lazy guy too:D but in case of hddvd or blueray iso, the autostart doesn't works. I've tried the {enter} order in parameters but nothing.

Underheaven
27.01.2008, 11:15
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).