trof Posted October 17, 2012 Share Posted October 17, 2012 Hi, Greetings to all forum membersI'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 properlyRun("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 More sharing options...
caleb41610 Posted October 17, 2012 Share Posted October 17, 2012 Try using ShellExecute() instead of run if you are having trouble opening it. Double check that there are no typos in the controlclicks. Multi-Connection TCP Server Link to comment Share on other sites More sharing options...
JohnOne Posted October 17, 2012 Share Posted October 17, 2012 have you tried using /quiet switch for install? 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 More sharing options...
ileandros Posted October 17, 2012 Share Posted October 17, 2012 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. Link to comment Share on other sites More sharing options...
JohnOne Posted October 17, 2012 Share Posted October 17, 2012 If anyone is wanting to download, then here is official linkhttp://www.avanquest.com/UK/software/expert-pdf8-business-edition-101674?meta=work&cat=home-office&sub=Pdf 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 More sharing options...
trof Posted October 17, 2012 Author Share Posted October 17, 2012 @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 More sharing options...
JohnOne Posted October 17, 2012 Share Posted October 17, 2012 Ok, it's time you described your problem in detail. ileandros 1 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 More sharing options...
trof Posted October 17, 2012 Author Share Posted October 17, 2012 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 More sharing options...
JohnOne Posted October 17, 2012 Share Posted October 17, 2012 Then you you should test the return values of controlclick in each case you use it. It returns 1 if successful and 0 if fail, also read the remarks in the help file. 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 More sharing options...
Moderators SmOke_N Posted October 17, 2012 Moderators Share Posted October 17, 2012 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 More sharing options...
jdelaney Posted October 17, 2012 Share Posted October 17, 2012 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. Link to comment Share on other sites More sharing options...
trof Posted October 18, 2012 Author Share Posted October 18, 2012 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 More sharing options...
JohnOne Posted October 18, 2012 Share Posted October 18, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now