Jump to content

ControlClick


trof
 Share

Recommended Posts

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

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...