Jump to content
Sign in to follow this  
trof

ControlClick

Recommended Posts

trof

Hi, Greetings to all forum members

I'm trying to create an unattended installation of Expert Pdf 6 using ControlClick AutoIt command, but with no luck.

Please someone can tell me how to edit the script so it works properly

Run("expertpdf_v6_avanquest_trial_uk.exe")
WinWaitActive("eXPert PDF 6 - Welcome")
Sleep(5000)
ControlClick("eXPert PDF 6 - Welcome", "", "[CLASS:Button; INSTANCE:1]")
Sleep(1000)
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:5]")
Sleep(1000)
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:2]")
Sleep(1000)
ControlClick("eXPert PDF 6 - Setup Type", "", "[CLASS:Button; INSTANCE:4]")
Sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:6]")
Sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:5]")
Sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:4]")

ExpertPdf 6 trial http://www.mediafire.com/?rfxaqabl3wualjq

Share this post


Link to post
Share on other sites
caleb41610

Try using ShellExecute() instead of run if you are having trouble opening it.

Double check that there are no typos in the controlclicks.

Share this post


Link to post
Share on other sites
ileandros

If it is for own usage you could use standard contolclicks with coords.

Check this out:

Play arround with it. Give coords where to check and if u modify it a bid maybe it could help you.


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites
trof

@caleb41610 i don't have problem to lunch the installer

@JohnOne yes I have tried /quiet switch but it doesn't work

@ileandros I tried with controlclick mouse chords but I did not succeed

Thanks for the help, but please other suggestions

Share this post


Link to post
Share on other sites
trof

Hi JohnOne

The problem is when I lunch the script, start the program installation but ControlClick command are not executed. As result I can see on the screen a simply installation window that ask me to continue program setup, but i'd like that AutoIt runs ControlClick command.

I partially solved my problem because I found \s switch to perform a silent installation.

Anyway I'm really interested in the AutoIt script, it can be usefull in other circumstance

Share this post


Link to post
Share on other sites
SmOke_N

Version 6 install versus Version 8 release?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
jdelaney

your hard coded waits don't ensure that the window is actually present/visible/active. Start with that, for each window.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
trof

I solved the problem

Run("expertpdf_v6_avanquest_trial_uk.exe")
WinWaitActive("eXPert PDF 6 - Welcome")
ControlClick("eXPert PDF 6 - Welcome", "", "[CLASS:Button; INSTANCE:1]")
sleep(1000)
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:5]")
sleep(1000)
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:2]")
sleep(1000)
ControlClick("eXPert PDF 6 - Setup Type", "", "[CLASS:Button; INSTANCE:4]")
sleep(15000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:6]")
sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:5]")
sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:4]")

Thanks to all, and a splecial thank to jdelany: your suggestion was very usefull

Share this post


Link to post
Share on other sites
JohnOne

I solved the problem

Run("expertpdf_v6_avanquest_trial_uk.exe")
WinWaitActive("eXPert PDF 6 - Welcome")
ControlClick("eXPert PDF 6 - Welcome", "", "[CLASS:Button; INSTANCE:1]")
WinWaitActive("eXPert PDF 6 - License Agreement")
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:5]")
sleep(1000)
ControlClick("eXPert PDF 6 - License Agreement", "", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("eXPert PDF 6 - Setup Type")
ControlClick("eXPert PDF 6 - Setup Type", "", "[CLASS:Button; INSTANCE:4]")
WinWaitActive("eXPert PDF 6 - Finish Wizard")
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:6]")
sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:5]")
sleep(1000)
ControlClick("eXPert PDF 6 - Finish Wizard", "", "[CLASS:Button; INSTANCE:4]")

Thanks to all, and a splecial thank to jdelany: your suggestion was very usefull

Maybe, but you still missing the point, look at the altered code for clues.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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  

×