Cover image for AutoIt v3: Your Quick Guide

Book description

AutoIt is becoming increasingly popular in the systemadministration field as a tool for automating administrative tasks.Although this is one of its more popular uses, you can use AutoItto automate anything in a Windows environment. This powerfulscripting language can run any program and manipulate keyboard andmouse input. With its RunAs support, administrators can performunattended installations and configuration changes using embeddedadministrative privileges.

This guide teaches you the foundations of the AutoIt v3language. You will learn about variables and includes, graphicaluser interfaces, user-defined functions, and conditional and loopstatements. You will then apply what you have learned in examplesrelated to the system administration field. The examples in thisShort Cut can be used to create anything from a game modificationto a logon script that verifies Windows updates.

Table of Contents

  1. AutoIt v3: Your Quick Guide
  2. Introduction and AutoIt History
  3. Variables and Includes
    1. Variable Types—Dim, Global, and Local
      1. Constants
      2. Arrays
    2. Finding the Correct Include
    3. FileInstall—Including Files in AutoIt Scripts
  4. Graphical User Interfaces (GUIs)
    1. GUI Event Modes
    2. GUI Controls
    3. Manipulating Data in GUIs
    4. User Functions
      1. Creating Functions—Func, Return, EndFunc
        1. Const and ByRef
        2. Parameters
        3. Return
      2. User-Defined Functions
    5. Conditional and Loop Statements
      1. Conditional Statements
      2. Loop Statements
      3. With...EndWith
  5. Automation Examples
    1. AntiVirus Compliance Check
    2. AutoPatcher Fix
    3. Change My Documents Location
    4. Data Execution Prevention—Disable
    5. Outlook XP Preview Pane—Disable
    6. Enable Remote Desktop Connection and NetMeeting
    7. Microsoft Windows XP Update Verifier
    8. Proxy Server Detector for Internet Explorer
    9. User Lockout
    10. User SID Lookup
    11. Word Document Title Changer
  6. Conclusion
  7. About the Author
  8. Copyright