for more information please visit: http://www.autoitscript.com/autoit3/index.shtml
This can be used for automating windows GUI and I dont think so this can be used for automating web based applications unless you tell if i have done something wrong here.
Ok..its pretty simple how to use. You can install the AutoIt exe. It comes with a pretty good IDE for scripting. I just wanted to share a simple example on how to automate a simple installation procedure.
You need to copy and paste this to a notepad and save it as .au3 extension. You can also save it as a exe , I mean you can convert it into an exe using this tool. This was you can distribute it also. I would explain it as below:
// get the exe input name from the user.
$exeName = InputBox(EXE Input, enter full SpySweeperRegSetup_EN.exe name in format name.exe, , )
Run($exeName)
// wait for the window to come up
WinWaitActive(Webroot Software – Installation,Welcome)
// send is used to send the commands, over here I am sending the commands to the
// application
Send({ENTER})
// my application needs a keycode for installation, get the keycode
$keycode = InputBox(Keycode, Enter your keycode SSGA-ONLN-AADI-BOXN-BOAN, , )
Send($keycode)
Send({ENTER})
Send(!o)
Send({ENTER})
Send({ENTER})
Send(!a)
Send(!N)
WinWaitActive(Webroot Software – Installation,Installation Type)
Send({ENTER})
WinWaitActive(Webroot Software – Installation,Free Webroot Ask Toolbar)
Send(!I)
Send(!N)
WinWaitActive(Webroot Software – Installation,Ready to Install)
Send({ENTER})
WinWaitActive(Webroot Software – Installation,Installation Complete)
Send(!N)
Send(!F)
Its pretty understandable and easy. The above code installs the application on my computer.
Leave a Reply