Jump to content

Trying to write an AutoIt Script to install XNormal


Recommended Posts

Here is the software

http://cdn.eat3d.com/files/xnormal_3.17.5_installer.exe

I 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 by clivebuckwheat
Link to comment
Share on other sites


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}")

Link to comment
Share on other sites

Thanks that did the trick.

Now it seems I can't get the script to go past this screen

http://cl.ly/0f0s3S1M1T3w142G0D25/Screen_Shot_2011-09-26_at_9.01.07_AM.png

Here 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 by Tripredacus
changed img to code. No need for such a large picture
Link to comment
Share on other sites

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 directory
Winwait ($sTX1,"")
Winactivate ($sTX1,"")
Send("{tab 3}")
sleep (250)
Send("{space}")

;Update setting
;with default Yes, automatically notify me when updates are available
Winwait ($sTX1,"")
Winactivate ($sTX1,"")
Send("{space}")

;Ready to install
Winwait ($sTX1,"")
Winactivate ($sTX1,"")
Send("{space}")

;Completing the Xvid Video Codec Setup Wizard
sleep (11000); Delay to give enough time for the installation to complete
Winwait ($sTX1,"")
Winactivate ($sTX1,"")
Send("{space}")

;close readme
Winwait ("README")
WinClose ("README")

;Part 3
DIM $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 by Geej
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
  • Recently Browsing   0 members

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