This is a collection of tutorials for the AutoIt scripting language. With AutoIt, it is possible to automate many aspects of Windows. Including mouse movements. LEARNING TO SCRIPT WITH AUTOIT V3. Page 2. Table of Download and Install AutoIt V3. What is contained in this tutorial?. This AutoIT Tutorial teaches you in making your own automation application and do a 1 click process of your installations.
|Published (Last):||25 October 2006|
|PDF File Size:||1.88 Mb|
|ePub File Size:||13.62 Mb|
|Price:||Free* [*Free Regsitration Required]|
The advantage of knowing what these hidden switches are is that it allows you to tytorial the way a piece of software is installed. The main advantage of this is that it allows us to automate what we do.
Tutorial – Notepad
Lets say that you install a certain set of software on every system that you sell like Spybot, Ad-Aware and AVG antivirus. You can make this a 1 click process and let the application that you created do all the work.
We will be making our automation application using a tool called AutoIT. AutoIT is a basic scripting tutoriall which is easy to learn but does require a little bit of coding knowledge. You can name it whatever you want but change the extension to.
This is the scripting file that AutoIT will be using and where we will be placing our code. You can open this file with any text editor but AutoIT also comes with a special editor that makes things a tutorizl easier.
If you right click on your new.
You should see the contents of an empty file that looks like a blank text file, this is where we will be placing our code. To begin with a very basic script, enter the following line into your script file and click save.
Tutorial – HelloWorld
This command starts a defrag of the C: If you ran this command in DOS yourself, you would get the exact same outcome. You can also try this with many other DOS commands. As for the exit line, it just tells the script to close when its finished.
Now we know autiot3 it does, right click on your. You should see the DOS window show up and it will start defragging the C: Right click on your. This will create an. So if you have named your au3 script mycode.
This has made our script portable and can be run on any Windows computer. To do that, we can use Universal Silent Switch Finder which you can download here. Clear out your old. Be careful with the quotation marks because the line from USSF and the line needed in the code have them in different places.
Run this script and if you did it correctly, it will appear that nothing has happened. Check your Start Menu or the Program Files folder and you should see at 7zip has been installed.
AutoIT doesnt just limit you to just automating the install of an application, you can also automate the running of them too.
For example, we can tell an application like Clamwin which a portable virus scanner, to scan the C drive for viruses and once they are found, delete them, using the following line RunWait “ClamWin. To find the command line switches for different applications, try the applications documentation or search for them on Google.
For additional help with what we have worked with here, AutoIT has some great documentation. Special thanks to our forum member focuzwho sent in many of his AutoIT automation examples which much of this article is based off. Automation with AutoIT Tutorial: Exit This command starts a defrag of the C: To add mutliple applications to be automatically installed you would do something like: