clivebuckwheat Posted September 25, 2011 Posted September 25, 2011 (edited) Here is the softwarehttp://cdn.eat3d.com/files/xnormal_3.17.5_installer.exeI can't seem to get autoit to check off I agree to the licensing terms. This is what I did so far. Any help would be great as I do not see what I did wrong. I am only about 6 months into learning autoit. So I do have a lot to learn.RunWait ('C:\Applications\XNormal\xnormal_3.17.5_installer.exe')WinWait("xNormal 3.17.5 Setup: License Agreement", "")WinWaitActive("xNormal 3.17.5 Setup: License Agreement", "")Send("{TAB}")Send("{SPACE}") Edited September 25, 2011 by clivebuckwheat
allen2 Posted September 26, 2011 Posted September 26, 2011 First when running an exe which you want to interact with, you have to change runwait with run. Also the argument of run should be between double quotes.So your code will become this and should pass the agreement:Run("C:\Applications\XNormal\xnormal_3.17.5_installer.exe")WinWait("xNormal 3.17.5 Setup: License Agreement", "")WinWaitActive("xNormal 3.17.5 Setup: License Agreement", "")Send("{TAB}")Send("{SPACE}")
clivebuckwheat Posted September 26, 2011 Author Posted September 26, 2011 (edited) Thanks that did the trick.Now it seems I can't get the script to go past this screenhttp://cl.ly/0f0s3S1M1T3w142G0D25/Screen_Shot_2011-09-26_at_9.01.07_AM.pngHere is the code thus far. The setup window is active even though it doesn't show it in the screen shot. When the setup window is active the next button is selected.Run("C:\Applications\XNormal\xnormal_3.17.5_installer.exe")WinWait("xNormal 3.17.5 Setup: License Agreement", "")WinWaitActive("xNormal 3.17.5 Setup: License Agreement", "")Send("{TAB 4}")Send("{SPACE}")Send("{ENTER 4}")WinWait("Setup", "")WinWaitActive("Setup", "")Send("{SPACE}") Edited October 3, 2011 by Tripredacus changed img to code. No need for such a large picture
Geej Posted September 28, 2011 Posted September 28, 2011 (edited) opt("TrayIconDebug",1);Run ( "xnormal_3.17.5_installer.exe /S")Run("C:\Applications\XNormal\xnormal_3.17.5_installer.exe /S")DIM $sTX1="Setup"Winwait ($sTX1,"")Winactivate ($sTX1,"")sleep (2800)Send("{space}")sleep (500)Winwait ($sTX1,"")Winactivate ($sTX1,"")Send("{tab}{space}")sleep (250)Send("{tab 3}{space}")Sleep (500);Install directoryWinwait ($sTX1,"")Winactivate ($sTX1,"")Send("{tab 3}")sleep (250)Send("{space}");Update setting;with default Yes, automatically notify me when updates are availableWinwait ($sTX1,"")Winactivate ($sTX1,"")Send("{space}");Ready to installWinwait ($sTX1,"")Winactivate ($sTX1,"")Send("{space}");Completing the Xvid Video Codec Setup Wizardsleep (11000); Delay to give enough time for the installation to completeWinwait ($sTX1,"")Winactivate ($sTX1,"")Send("{space}");close readmeWinwait ("README")WinClose ("README");Part 3DIM $sTM1="x264vfw - H.264/MPEG-4 AVC codec Setup"DIM $sTM2="Welcome to the x264vfw"Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,1)$sTM2="License Agreement"Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,1)$sTM2="Choose Install Location"Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,1)$sTM2="Setup was completed successfully."Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,1)$sTM2="Click Finish to close this wizard."Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,1)$sTM1="xNormal 3.17.5 Setup"$sTM2="The system needs to be rebooted. Do you want to reboot now?"Winwait ($sTM1,$sTM2)WinActivate ($sTM1,$sTM2)ControlClick ($sTM1,$sTM2,7);7=No Edited October 1, 2011 by Geej
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