AutoIt 3.2
http://www.autoitscript.com/autoit3/index.php
If you are like me, you are always trying to make tedious tasks not so tedious, whether it is by simplifying a process, finding alternate ways of doing things, or providing great documentation. Sometimes, you can only achieve so much with depending on your users to follow the right set of tasks you need them to perform in order to get a peice of software installed, or a change made, etc.
When it comes to automation, I am huge into VBScripting, and I LOVE it. I'm no expert, but I get around OK - and there's not much a VBScript can't do when you need it to automate a system or application task. With that said however, there's a bit of a learning curve, and it takes a bit of troubleshooting to understand how it works in the backend before expecting useful results to spring magically from your fingertips. I know that my keyboard sometimes loses a little bit of the translation as I'm typing - :)
Does anyone remember Microsoft Scriptit? It was a 'button-pressing' automation tool that allowed system admins to run a script that waited for certain windows to appear with title x and then if that window appeared, press a key that corresponded to a control on the particular window - great for automating software installations.
Sometimes you need MORE than just a button pressing tool, and this is where AutoIT comes into play.
I see AutoIt as being Scriptit with a VBScript-esque mindset to it.
AutoIt not only can press your buttons for you, but it can utilize a wide array of time-saving built in macros, create a GUI front end, plug-in to current scripting languages, and a LOT more. AutoIt is most definitely NOT limited to button pushing.
A quote from the website:
AutoIt can:
- Provide a general-purpose scripting language for all Windows versions
- Simulate keystrokes (supports most keyboard layouts)
- Simulate mouse movements and clicks
- Move, resize and manipulate windows
- Interact directly with "controls" on a window (set/get text from edit controls, check boxes and radio buttons, select items in drop-down lists, etc.)
- Create complex user interfaces (GUIs)
- Work with the clipboard to cut/paste text items
- Provide a scriptable RunAs function for Windows 2000/XP/2003
As a quick "cool" example of manipulating the OS, say you wanted to be notified of various parameters, or other notifications were needed to alert the user regarding something... you can manipulate the systray bubble object for status messages during your script execution. .
Support is great, and the forums have a LOT of user-submitted scripts to make your life easier. For example, I downloaded a snippet that allowed me to detect if a computer was a laptop or desktop (my requisite was that I could not use WMI). Once I had it working, I had a status balloon appear saying "laptop configuration detected" - and then it sent the script down a different path of installation.
New to version 3.x is the ability to build GUI interfaces so now you aren't limited to producing a HTA/HTM page using standard forms.

A scriptable DLL is included so you can include AutoIt functions within ASP/HTM pages or VBScripts and HTAs, so it is constantly blurring the line between being an easy-to-use automation tool and a full fledged (I would argue that it is) scripting language.
Many text editors like PSPad, UltraEdit, TextPad, etc. have syntax highlighting for the AutoIt language, so it is becoming very mainstream.
In summary, if you want a GREAT utility for nothing :) that can provide you with a way to reduce your automation woes, then I recommend AutoIt. Fine, I recommend AutoIt either way. You can also use it to make your friends go crazy, but I won't get into that!
5 comments:
I used ScriptIt and then AutoIt 2.x. I pestered enough that Jon started v3 and left the source available for us to add to. The product of today is so far removed from the previous version, it is almost a shame to compare. You can do WSH within AutoIt itself. You can call functions from DLLs. You can even create "structures" to pass to DLL functions as parameters.
But, not to stray too much... The thing I always liked about AutoIt is that you can interact with what you know about a software. The UI.. User Interface. Instead of needing to know what changes are made by a UI so that you can script those changes... you just automate the UI . It really makes an admin lazy... but what the hell.
Lar.
Autoit is, in my mind, one of the easiest scripting languages to learn, and the fact that it is capable of being compared to VBS or other more mainstream language in power and usefullness, makes it a miracle brought to life
before Autoit, I was never really interested in scripting, i wished i was, but after wasting $30.00 on a C++ manual that I still don't understand, the idea set in that scripting wasn't right for me, and I'd have to spend my time playing useless games. However, while on a site i was visiting that had information on a product i was using at the time, I stumbled across a link to www.autoitscript.com (Autoit's Homepage) Read a little about it, and was instantly hooked, from then on, my family and friends all call me a 'scripter'. I practiced, read the tutorials and asked plenty of questions to the forums, and before long, I got to where i am today. Clicking that link was one of the the best moves i've EVER made in my whole life on the computer.
Those who think Autoit isn't a 'full fledged scripting language' should try it before opening their mouths, and they will be pleased they did
Wanna get into scripting, but don't know where to start? Try Autoit!
I am completely addicted to AutoIt. I've been using prior to version 3 and I just love the new changes that have been made with the latest version.
The simple fact that you can quickly write a script, test it, and then compile it to an executable what is usually under 300k is huge!
I'm putting together some simple tutorials for those just getting into AutoIt or wanting to get more information about it. Feel free to check out http://www.DailyCupOfTech.com and get going with AutoIt.
Tim
Nice blog!
If you get a chance, check out my site: Pick 3 Turbo Player
Thanks
Nice blog!
If you get a chance, check out my site: Pick 3 Turbo Player
Thanks
Post a Comment