Post by knotten on Feb 14, 2006 18:00:15 GMT -5
My first post ever.....
I have this;
Run("PowerDVD6.exe")
If WinWaitActive("Question", "An existing version") Then
ControlClick("Question", "", "Button1")
WinWaitActive("Question", "Would you like to keep your personal settings for PowerDVD?")
ControlClick("Question", "", "Button2")
EndIf
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "A system with Pentium III 500 or")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Do you accept all the terms of the")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup will install the following programs into your computer:")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please enter your information.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup will install PowerDVD in")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please select a program folder.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please select your default PowerDVD skin.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup has been completed.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button4")
Run "C:\Programfiler\CyberLink\PowerDVD\PowerDVD.exe")
If WinExists( "CyberLink Registration") Then
WinWaitActive ("CyberLink Registration", "")
ControlClick("CyberLink Registration", "", "Button4")
Endif
winactivate("Key Activation.", "Please enter CD-Key to activate PowerDVD 6.")
WinWaitActive("Key Activation.", "Please enter CD-Key to activate PowerDVD 6.")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit1", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit2", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit3", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit4", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit5", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit6", "xxxxx")
ControlClick("Key Activation.", "", "Button2")
WinWaitActive("Activate now...")
ControlClick("Activate now...", "", "Button1")
The green part;
If PowerDVD has been instaled befor, then I want to bypass it. But it seems like the script just "jumps" over it......
If I put in --> WinWaitActive("Question", "", 18), in front of the "IF", the script will see the "Question" window and move on after 18sec. And the the "IF" works fine.
If I put in --> WinWaitActive("Question", ""), in front of the "IF", the script will see the "Question" window and halt. So the "Question" window are noticed .
Iam new at this, so pls. be patient!
I have this;
Run("PowerDVD6.exe")
If WinWaitActive("Question", "An existing version") Then
ControlClick("Question", "", "Button1")
WinWaitActive("Question", "Would you like to keep your personal settings for PowerDVD?")
ControlClick("Question", "", "Button2")
EndIf
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "A system with Pentium III 500 or")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Do you accept all the terms of the")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup will install the following programs into your computer:")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please enter your information.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup will install PowerDVD in")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please select a program folder.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Please select your default PowerDVD skin.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
WinWaitActive("CyberLink PowerDVD Deluxe v6.0 Setup...", "Setup has been completed.")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button1")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button2")
ControlClick("CyberLink PowerDVD Deluxe v6.0 Setup...", "", "Button4")
Run "C:\Programfiler\CyberLink\PowerDVD\PowerDVD.exe")
If WinExists( "CyberLink Registration") Then
WinWaitActive ("CyberLink Registration", "")
ControlClick("CyberLink Registration", "", "Button4")
Endif
winactivate("Key Activation.", "Please enter CD-Key to activate PowerDVD 6.")
WinWaitActive("Key Activation.", "Please enter CD-Key to activate PowerDVD 6.")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit1", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit2", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit3", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit4", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit5", "xxxxx")
ControlSend ( "Key Activation.", "Please enter CD-Key to activate PowerDVD 6.", "Edit6", "xxxxx")
ControlClick("Key Activation.", "", "Button2")
WinWaitActive("Activate now...")
ControlClick("Activate now...", "", "Button1")
The green part;
If PowerDVD has been instaled befor, then I want to bypass it. But it seems like the script just "jumps" over it......
If I put in --> WinWaitActive("Question", "", 18), in front of the "IF", the script will see the "Question" window and move on after 18sec. And the the "IF" works fine.
If I put in --> WinWaitActive("Question", ""), in front of the "IF", the script will see the "Question" window and halt. So the "Question" window are noticed .
Iam new at this, so pls. be patient!