Sign in to follow this  
Followers 0
assassinx

Encarta 2006 Automation Help

3 posts in this topic

Run ("setup.exe")

WinWaitActive ("Microsoft Encarta Premium 2006 DVD")

Send ("n")

WinWaitActive ("End User License Agreement")

Send ("!a")

Send ("{Tab}")

Send ("{Space}")

Send ("{Enter}")

Opt("WinWaitDelay", 3000)

WinWaitActive ("Microsoft Encarta Premium 2006 DVD Setup")

Send ("!n")

Send ("!n")

Send ("{Space}")

Send ("!n")

Send ("!n")

Send ("!n")

Send ("!i")

heres my code its basic.. it runs the setup but my problem is after installing i want to click finish

i cannot click finish cause winwaitactive text title is the same as the presetup title. any help will be greatly appreciated..

Share this post


Link to post
Share on other sites



[/autoit]

...

heres my code its basic.. it runs the setup but my problem is after installing i want to click finish

i cannot click finish cause winwaitactive text title is the same as the presetup title. any help will be greatly appreciated..

hey,

not sure what the installer for Encarta is like but you might want to look into using ControlClick (and the other commands similar to this) which usually allow for much more reliable control when dealing with windows applications and installers. Basically you would have to open the installer to the spot that has the button you would like to press, open the AutoIT Window Info program, mouse over the button on the installer (ensuring it has focus) and then take note of the control ID of the button.

The command would then look something like this:

ControlClick ( "windowtitlehere", "optional text here", 5 ) ;5 is the control id of the control you would like to click

Share this post


Link to post
Share on other sites

Ahh.. Finally sorted it out.. heres my final working code hope it can help someone in the future.

thanks to the Autoit Active window info :):P:D now i integrate it on my silent winxp dvd installer.. :D:party::party:

Run ("setup.exe")

WinWaitActive ("Microsoft Encarta Premium 2006 DVD")

Send ("n")

WinWaitActive ("End User License Agreement")

Send ("!a")

Send ("{Tab}")

Send ("{Space}")

Send ("{Enter}")

Opt("WinWaitDelay", 8000)

WinWaitActive ("Microsoft Encarta Premium 2006 DVD Setup")

Send ("!n")

Send ("!n")

Send ("{Space}")

Send ("!n")

Send ("!n")

Send ("!n")

Send ("!i")

WinWaitActive("Microsoft Encarta Premium 2006 DVD Setup", "You Have Completed the Microsoft Encarta Premium 2006 DVD Setup Wizard")

Send ("!x")

Exit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0