PureBytes Links
Trading Reference Links
|
<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3401" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Now, on the AutoIt Home page I did not find a link to the
here below printed (and with program</FONT></DIV>
<DIV><FONT size=2>included) Help-file, (I don't think Jonathan has finished
updating the AutoIt Home site as yet)</FONT></DIV>
<DIV><FONT size=2>eg so as to get </FONT><FONT size=2>an idea of </FONT><FONT
size=2>the language (syntax) used in AutoIt, do scroll further down this
mail.</FONT></DIV>
<DIV> </DIV>
<DIV>Regards,<BR>Ton Maas<BR><A
href="mailto:ms-irb@xxxxxxxxxxxxxxxx">ms-irb@xxxxxxxxxxxxxxxx</A><BR>Dismiss the
".nospam" bit (including the dot) when replying.</DIV>
<DIV>Note the address change, also for my homepage</DIV>
<DIV>Homepage: <A
href="http://home.planet.nl/~anthmaas">http://home.planet.nl/~anthmaas</A></DIV>
<DIV> </DIV><FONT size=2>
<P align=center><FONT size=5><EM><STRONG>AutoIt</STRONG></EM></FONT></P>
<P align=center><FONT size=2><STRONG><EM>Version 2.0 - (C)1999 Jonathan
Bennett</EM></STRONG></FONT></P>
<P align=center><A href="mailto:jbennett@xxxxxxxxxxxxxxxxxx"><FONT
size=2><EM>(Email: jbennett@xxxxxxxxxxxxxxxxxx)</EM></FONT></A></P>
<P align=center><A href="http://www.hidden.demon.co.uk/AutoIt/index.html">AutoIt
Homepage</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><B><I>Quick Command Reference</I></B></P>
<P>[Break] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#DetectHiddenText">DetectHiddenText</A>]
[Exit] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Repeat">EndRepeat</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Gosub">Gosub</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Goto">Goto</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#HideAutoItWin">HideAutoItWin</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">IfWinExist</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">IfWinNotExist</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">IfWinActive</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">IfWinNotActive</A>]
[IfEqual] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfEqual">IfNotEqual</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfExist">IfExist</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfExist">IfNotExist</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfMsgBox">IfMsgBox</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#InputBox">InputBox</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#LeftClick">LeftClick</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#MsgBox">MsgBox</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Gosub">Return</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#LeftClick">RightClick</A>]
[Run] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#RunWait">RunWait</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Repeat">Repeat</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Send">Send</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Sleep">Sleep</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetKeyDelay">SetKeyDelay</A>]
[SetEnv] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetTitleMatchMode">SetTitleMatchMode</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetWinDelay">SetWinDelay</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOn">SplashTextOn</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOff">SplashTextOff</A>]
[WinWait] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitClose">WinWaitClose</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitActive">WinWaitActive</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitNotActive">WinWaitNotActive</A>]
[WinHide] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinRestore</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinMinimize</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinMaximize</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinActivate</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinClose</A>] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinMinimizeAll">WinMinimizeAll</A>]
[WinMove] [<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinSetTitle">WinSetTitle</A>]
[<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinGetActiveTitle">WinGetActiveTitle</A>]</P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name="Table of Contents"><FONT size=5><EM><STRONG>Table of
Contents</STRONG></EM></FONT></A></P>
<P><FONT size=3><STRONG>1. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Introduction"><FONT
size=3><STRONG>Introduction</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>2. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Intended Use"><FONT
size=3><STRONG>Intended Use</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>3. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#License"><FONT
size=3><STRONG>License</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>4. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Year 2000 Statement"><FONT
size=3><STRONG>Year 2000 Statement</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>5. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Conventions"><FONT
size=3><STRONG>Document Conventions</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>6. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Running AutoIt"><FONT
size=3><STRONG>Running AutoIt</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>7. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Script File Syntax">Script
File Syntax</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>8. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Window Titles and Text">Window
Titles and Window Text</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>9. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#DOS Environment Variables">DOS
Environment Variables</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>10. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Script Commands">Script
Commands</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>11. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Send Command Syntax">Send
Command Syntax</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>12. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#ADLIB Section">The [ADLIB]
Section</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>13. <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Examples">Examples</A></STRONG></FONT></P>
<P><FONT size=3><STRONG>14. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#AutoIt History"><FONT
size=3><STRONG>AutoIt History</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>15. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#The Wish List"><FONT
size=3><STRONG>The Wish List</STRONG></FONT></A></P>
<P><FONT size=3><STRONG>16. </STRONG></FONT><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Thanks To"><FONT
size=3><STRONG>Thanks To....</STRONG></FONT></A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name=Introduction><FONT
size=5><EM><STRONG>Introduction</STRONG></EM></FONT></A></P>
<P>AutoIt is an automation tool. It can be used to automate any simple windows
or DOS based task. It was primarily designed to assist in automatically
installing software that cannot be automatically installed by other means. This
is most useful during a PC rollout where hundreds or thousands of client
machines need to be automatically installed. Many programs such as MS Office,
Mcafee, IE4, etc. feature their own automated installation routines. Far too
many programs, however, feature no way of automatic installation. That's where
AutoIt comes in. AutoIt can also be used to automate small tasks on your
machine.</P>
<P>When AutoIt is executed, it reads a specified script file. This script file
allows AutoIt to perform a number of functions, these include</P>
<UL>
<LI>Executing programs (Windows applications, DOS commands, etc.)
<LI>Sending keystrokes and mouseclicks (all characters, keyboard layout
independant).
<LI>Window functions (e.g. minimizing, hiding, restoring, waiting for,
activating (even under Win98/NT2000)). </LI></UL>
<P>Best of all, its small (~52Kb self contained .exe, no DLL's, no registry
entries) and <U>FREE!</U> (And it <U>will</U> stay free).</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name="Intended Use"><FONT size=5><EM><STRONG>Intended
Use</STRONG></EM></FONT></A></P>
<P>This program is intended for performing simple automation tasks in Windows.
It is not intended as the "be-all and end-all" of scripting. When performing
complex tasks (registry manipulation, text file parsing, complex loops, etc.) I
would recommend using AutoIt in conjunction with a fully-fleged scripting
language (such as WSH or <A
href="http://kixtart.to/script/">Kixtart</A> - both free) and using AutoIt to
"fill in the gaps". The current ethos of AutoIt is "If it can't be done on a
single line - it's probably too complicated". This approach has worked well so
far, and helped to keep the size of AutoIt down (it is a <STRONG>tiny</STRONG>
executable!).</P>
<P>I personally use AutoIt for large PC rollouts. I use Kixtart/WSH as a
"back-end" to copy files, run files, edit the registry and then use it to call
AutoIt when I need to perform configurations that can only be usually acheived
by manual input (software installation, configuring control panel, changing
drive letters, etc.).</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name=License><FONT size=5><EM><STRONG>License</STRONG></EM></FONT></A></P>
<P>See License.txt
included in this archive.</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name="Year 2000 Statement"><FONT size=5><EM><STRONG>Year 2000
Statement</STRONG></EM></FONT></A></P>
<P>AutoIt uses no date functions, and therefore, to the best of the authors
knowledge, is Y2K compliant. However, see the license for standard
disclaimers.</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name=Conventions><FONT
size=5><EM><STRONG>Conventions</STRONG></EM></FONT></A><BR><BR>Parameters are
shown in angled brackets, optional parameters are shown in square
brackets.<BR><BR><EM>e.g.</EM><BR><cmd>, <parameter1>
[,<parameter2>]<BR><BR>This is a command, followed by a comma
<STRONG>and</STRONG> parameter1, optionally followed by a comma
<STRONG>and</STRONG> parameter2. <BR><BR><EM>i.e. </EM><BR><cmd>,
<parameter1><BR><BR><STRONG>OR</STRONG><BR><BR><cmd>,
<parameter1>, <parameter2></P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><BR><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx"
width=800></P>
<P><A name="Running AutoIt"><FONT size=5><EM><STRONG>Running
AutoIt</STRONG></EM></FONT></A></P>
<P>AutoIt can be executed from the command line, or by double-clicking on its
icon from the Windows Explorer.</P>
<P><FONT size=4><EM><STRONG>Command Line Syntax</STRONG></EM></FONT></P>
<P>AutoIt is executed from the command line in the two following ways:</P>
<P><STRONG>AutoIt /reveal</STRONG></P>
<P><EM>OR</EM></P>
<P><STRONG>AutoIt <filename of script file></STRONG><BR><BR><BR><FONT
size=4><EM><STRONG>Reveal Mode</STRONG></EM></FONT></P>
<P>When in "reveal" mode, the AutoIt window will stay topmost. As you click on
other windows to make them active, AutoIt will display their window titles, the
mouse coordinates relative to that window, and any other text on the window that
may help to distinguish it from other windows of the same title. As with MS
ScriptIt (the utiltiy that AutoIt was based on), not all text on a window can be
"seen" - experiment!</P>
<P>Information on the AutoIt reveal screen can be highlighted with the mouse and
copied to the clipboard with <STRONG>"CTRL-C"</STRONG>, this can then be pasted
into another program / text editor.</P>
<P><FONT size=4><EM><STRONG>Script Mode</STRONG></EM></FONT></P>
<P>AutoIt will execute the script filename given on the command line. The file
can have any extension (if you use the installation routine,
<STRONG>.aut</STRONG> will be automatically registered. Right clicking on a
<STRONG>.aut</STRONG> file will enable you to run or edit the script).</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><FONT size=5><EM><STRONG><A name="Script File Syntax">Script File
Syntax</A></STRONG></EM></FONT><BR><BR>The script file is a standard text file
that can be given any extension (although <STRONG>.aut</STRONG> is the preferred
extension). Each line can contain either a command, a comment, a label, or be
left blank.</P>
<P>; Start of script<BR>; Comments are indicated by a
semi-colon<BR><BR><Cmd>, <Cmd Parameters><BR><Cmd2>, <Cmd2
Parameters><BR><Cmd3>, <Cmd3 Parameters><BR><BR>; This is a
label, it must end with a colon (:) and it is used for commands such as Gosub
and Goto.<BR>label:<BR><BR>; End of script<BR>Exit</P>
<P>; Start of the ADLIB section<BR>[ADLIB]<BR><Title>, <Text>,
<Cmd>, <Cmd Parameters><BR></P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name="Special Characters"><FONT size=5><EM><STRONG>Special
Characters</STRONG></EM></FONT></A></P>
<P>The slash '\', comma ',' and percent '%' are treated as special characters,
and you must be careful when using them.</P>
<P>',' is used to seperate parameters in the script file.<BR>'%' is used to
indicate DOS variables.</P>
<P>If you wish to use any of this characters literally, you must preceed them
with the slash '\' character, i.e. "\," or "\%". If you wish to use a literal
'\' you must preceed this also, i.e. <A
href="file:///C:/Windows/Scripting/AutoIt/">"\\"</A>.</P>
<P>The "\n" and "\t" sequences can be used to denote newlines and tabs in the
AutoIt output functions MsgBox and InputBox.</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><FONT size=5><EM><STRONG><A name="Window Titles and Text">Window Titles and
Text</A></STRONG></EM></FONT><BR><BR>A number of script commands have
<STRONG>"Window Title"</STRONG> and <STRONG>"Window Text"</STRONG> as
parameters. <BR><STRONG>"Window Title"</STRONG> is text that appears in the
windows title bar. <BR><STRONG>"Window Text"</STRONG> is any other text on that
window, e.g. text on buttons such as "OK" and "Cancel".<BR><BR>Having "Window
Text" allows you to distinguish between multiple windows that have the same
title.<BR><BR>Neither the title nor text needs to be completely specified.
<BR><EM>i.e.</EM> <STRONG>"Untitled - No" </STRONG>will match a window with the
title <STRONG>"Untitled - Notepad"</STRONG>. <BR>See the text on the
SetTitleMatchMode command for additions to this.<BR><BR>Use the <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Running AutoIt">"/reveal"</A>
mode to see what text is present on a window.<BR><BR><STRONG>N.B.</STRONG>
Windows titles and text are CASE SENSITIVE!!!!!<BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back to
Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><FONT size=5><EM><STRONG><A name="DOS Environment Variables">DOS Environment
Variables</A></STRONG></EM></FONT><BR><BR>You can use DOS environment variables
anywhere in an AutoIt script. As in DOS batch files, just include the variable
enclosed in percent (%) symbols.<BR><BR>For example, if you want to send the
current DOS path to the notepad window you could do:<BR><BR>Run,
notepad.exe<BR>WinWaitActive, Untitled - Notepad<BR>Send, This is the DOS path
%PATH%<BR></P>
<P>This example shows an extreme example of using a DOS batch file to
create<BR>an entire line in a script.<BR><BR>REM DOS BATCH FILE <BR>REM<BR>SET
LINE1=Send, hello<BR>AUTOIT.EXE MYFILE.INI<BR>END END OF BATCH FILE<BR><BR><BR>;
MYFILE.INI - AutoIt Script<BR>Run, notepad.exe<BR>WinWaitActive, Untitled -
Notepad<BR>%LINE1%<BR>; End of script<BR><BR>This will use the DOS variable
LINE1 to completely replace a line in<BR>the AutoIt script!<BR><BR>N.B. Because
of its special status, if you want to actually use a percent sign without it
being changed into a variable, you must use the escape character '\'
first.<BR>e.g.<BR>Send, This will send a single percent sign \%<BR><BR>You can
also use "SetEnv" to set variables, <STRONG>but</STRONG> these changes will not
be visible from DOS - the value will only be valid in the current
script.<BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back to
Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><FONT size=5><EM><STRONG><A name="Script Commands">Script
Commands</A></STRONG></EM></FONT><BR><BR>The following commands are currently
recognised (commands are not case sensitive):<BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Break">Break, <on |
off></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#DetectHiddenText">DetectHiddenText,
<on | off></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Exit">Exit</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Repeat">EndRepeat</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Gosub">Gosub,
<label></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Goto">Goto,
<label></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#HideAutoItWin">HideAutoItWin,
<on | off></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">IfWinExist,
<Window Title>, [<Window Text>], <Command><BR>IfWinNotExist,
<Window Title>, [<Window Text>], <Command><BR>IfWinActive,
<Window Title>, [<Window Text>], <Command><BR>IfWinNotActive,
<Window Title>, [<Window Text>], <Command></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfEqual">IfEqual,
<Variable>, <Text>, <Command><BR>IfNotEqual, <Variable>,
<Text>, <Command></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfExist">IfExist, <file or
directory>, <Command><BR>IfNotExist, <file or directory>,
<Command></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfMsgBox">IfMsgBox,
<return value>, <Command></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#InputBox">InputBox,
<variable>, <title>, <message></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#LeftClick">LeftClick,
<x>, <y></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#MsgBox">MsgBox, <display
mode>, <title>, <message></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Repeat">Repeat,
<Count></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Gosub">Return<BR></A><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#LeftClick">RightClick,
<x>, <y></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Run">Run, <Program path
and name> [,<Working directory>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#RunWait">RunWait, <Program
path and name> [,<Working directory>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Send">Send, <Series of key
presses></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Sleep">Sleep,
<milliseconds></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetKeyDelay">SetKeyDelay,
<milliseconds></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetEnv">SetEnv,
<variable>, <value></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetTitleMatchMode">SetTitleMatchMode,
<mode></A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetWinDelay">SetWinDelay,
<milliseconds></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOn">SplashTextOn,
<Width>, <Height>, <Title>, <Message></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOff">SplashTextOff</A>
<BR><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWait">WinWait,
<Window Title> [,<Window Text>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitClose">WinWaitClose,
<Window Title> [,<Window Text>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitActive">WinWaitActive,
<Window Title> [,<Window Text>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitNotActive">WinWaitNotActive,
<Window Title> [,<Window Text>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinHide, <Window
Title> [,<Window Text>]<BR>WinRestore, <Window Title>
[,<Window Text>]<BR>WinMinimize, <Window Title> [,<Window
Text>]<BR>WinMaximize, <Window Title> [,<Window
Text>]<BR>WinActivate, <Window Title> [,<Window
Text>]<BR>WinClose, <Window Title> [,<Window Text>]</A><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinMinimizeAll">WinMinimizeAll</A>
<BR><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinMove">WinMove,
<Window Title>, [<Window Text>], <X>, <Y>,
<Width>, <Height></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinSetTitle">WinSetTitle,
<Window Title>, [<Window Text>], <New Title></A> <BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinGetActiveTitle">WinGetActiveTitle,
<Variable></A> <BR><BR>The syntax of these script commands are given
below:<BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back to
Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name=Run><STRONG><U>Run,<Program path and name> [,<Working
directory>]</U></STRONG></A><BR><BR>Executes a given program and proceeds to
the next line of the script. N.B. The program to run and the working directory
are separated by a ','. The working directory is optional.<BR><BR><B>N.B.
Because the '\' character is special you must use '\\' when specifying
paths!</B> <BR><BR><EM>e.g. </EM><BR>Run, notepad.exe, C:\\WINDOWS<BR>Run,
C:\\Program Files\\Microsoft Office\\Office\\WinWord.exe<BR><BR>The first
command runs notepad and sets the working directory to "C:\WINDOWS".<BR>The
second command runs MS Word in the current directory.<BR><BR>You can also run
command interpreter commands line Echo, Copy, etc.<BR><BR><EM>e.g.</EM> <BR>Run,
COMMAND.COM /C Echo Hello > C:\\Hello.txt<BR><STRONG>OR</STRONG><BR>Run,
%COMSPEC% /C Echo Hello > C:\\Hello.txt<BR><BR>Creates a file called
C:\Hello.txt containing the word "Hello".<BR><BR><BR><A
name=RunWait><STRONG><U>RunWait, <Program path and name> [,<Working
directory>]</U></STRONG></A><BR><BR>Same as the Run command but waits for the
program to finish before continuing.<BR><BR><BR><B><U><A name=Send>Send</A>,
<Series of key presses><BR></U></B><BR>Sends a set of keystrokes to the
currently active window. (The syntax of these keystrokes can be found in the
following section).<BR><BR><I>e.g </I> <BR>Send, This is a line of
text#{ENTER}<BR><BR><BR><B><U><A name=WinWait>WinWait</A>, <Window Title>
[,<Window Text>]</U></B><BR><BR>Stops script execution until the specified
window exists. The window does not need be active.<BR><BR><I>e.g.
<BR></I>WinWait, Untitled - Notepad<BR><BR><BR><B><U><A
name=WinWaitClose>WinWaitClose</A>, <Window Title> [,<Window
Text>]</U></B><BR><BR>Stops script execution until the specified window
ceases to exist.<BR><BR><I>e.g.</I> <BR>WinWaitClose, Untitled -
Notepad<BR><BR><BR><U><B><A name=WinWaitActive>WinWaitActive</A>, <Window
Title> [,<Window Text>]<BR></B></U><BR>Stops script execution until the
specified window to exists and is active.<BR><BR><BR><U><B><A
name=WinWaitNotActive>WinWaitNotActive</A>, <Window Title> [,<Window
Text>]<BR></B></U><BR>Stops script execution until the specified window
ceases to be active.<BR><BR><BR><B><U><A name=WinHide>WinHide</A>, <Window
Title> [,<Window Text>]<BR>WinRestore, <Window Title>
[,<Window Text>]<BR>WinMinimize, <Window Title> [,<Window
Text>]<BR>WinMaximize, <Window Title> [,<Window
Text>]<BR>WinActivate, <Window Title> [,<Window
Text>]<BR>WinClose, <Window Title> [,<Window
Text>]<BR></U></B><BR>If the window exists, the relevant command (i.e.
miniminzing, hiding, activating, etc.) will be performed. </P>
<P>>> N.B. WinActivate will bring a window to the top even under
Win98/NT5. <<<BR><BR><BR><B><U><A name=IfWinExist>IfWinExist</A>,
<Window Title>, [<Window Text>], <Command><BR>IfWinNotExist
,<Window Title>, [<Window Text>], <Command><BR>IfWinActive,
<Window Title>, [<Window Text>], <Command><BR>IfWinNotActive,
<Window Title>, [<Window Text>], <Command><BR></U></B><BR>If
the condition is met (i.e. the window title and text exists, is active, doesn't
exist, is inactive) then the script will execute the
<Command>.<BR><B>N.B.</B> If no window text is to be given you MUST
include the extra comma.<BR><I>e.g.</I><BR>IfWinExist, Win Title, Win Text,
Goto, label1<BR>IfWinExist, Win Title,, Goto, label1<BR><BR><BR><B><U><A
name=Sleep>Sleep</A>, <milliseconds></U><BR></B><BR>Halts execution of the
script for the given number of milliseconds. Max is 32767.<BR>1000 milliseconds
= 1 second. <BR><BR><BR><B><U><A name=SetKeyDelay>SetKeyDelay</A>,
<milliseconds><BR></U></B><BR>Changes the delay between keystrokes in
milliseconds. Max is 32767.<BR>Default is 10ms. 1000 milliseconds = 1
second.<BR><BR><BR><B><U><A name=LeftClick>LeftClick</A>, <x>,
<y><BR>RightClick, <x>, <y><BR></U></B><BR>Simulates a left or
right mouse button click. The X and Y co-ordinates are relative to the currently
active window. Run AutoIt in reveal mode to determine the required co-ordinates
of a window.<BR>To perform a double-click, simply run the command twice
:)<BR><BR><BR><B><U><A name=Exit>Exit</A></U></B><BR><BR>This command will end
the script.<BR><BR><BR><B><U><A name=Goto>Goto</A>,
<label></U></B><BR><BR>Script execution will continue at the specified
label. <BR><BR><I>e.g.<BR></I>; This script will loop
forever<BR>myloop:<BR>Sleep, 10<BR>Goto, myloop<BR><BR><BR><B><U><A
name=SetTitleMatchMode>SetTitleMatchMode</A>,
<mode><BR></U></B><BR>Changes the way that window titles are matched
against the script.<BR>Valid modes are "1" and "2" - the default is "1". This
mode affects most of the commands within AutoIt that have any sort of window
title and text in the command, i.e. WinWait, WinWaitActive, IfWinActive,
etc.<BR><BR><I>e.g.</I><BR>; Script using mode 1 (default)<BR>SetTitleMatchMode,
1<BR><BR>; Script using mode 2<BR>SetTitleMatchMode, 2<BR><BR><B>mode
1</B><BR><BR>In the script you specify the start of a window title to match.
i.e. for the notepad.exe window (Untitled - Notepad), valid matches would
be:<BR>"Untitled", "Untitled -", "Unt" and "Untitled - Notepad".<BR><BR><B>mode
2</B><BR><BR>In the script you can specify ANY substring of the window title you
want to match. Again for the notepad.exe window valid matches would
be:<BR>"Untitled", "Untitled - Notepad", "Notepad", "No".<BR><BR><BR><B><U><A
name=MsgBox>MsgBox</A>, <display mode>, <title>,
<message></U></B><BR><BR>Displays a dialog box with the specified message.
Different display modes will give different results (appearance, number of
buttons). A list of modes is given below, add up the numbers of the display
modes you want.<BR><BR>e.g. To display "Hello" with just an "OK"
button:<BR>MsgBox, 0, AutoIt, Hello<BR><BR>e.g. To display "Hello" with an
exclamation box and OK and Cancel:<BR>MsgBox, 49, AutoIt, Hello<BR>(1=OKCANCEL,
48=Exclamation, = 49) <BR></P>
<TABLE border=1>
<TBODY>
<TR>
<TD align=middle><B><I><FONT size=4>Function</FONT></I></B></TD>
<TD align=middle><B><I><FONT size=4>AutoIt Value</FONT></I></B></TD></TR>
<TR>
<TD>MB_OK</TD>
<TD align=middle><B>0</B></TD></TR>
<TR>
<TD>MB_OKCANCEL</TD>
<TD align=middle><B>1</B></TD></TR>
<TR>
<TD>MB_ABORTRETRYIGNORE</TD>
<TD align=middle><B>2</B></TD></TR>
<TR>
<TD>MB_YESNOCANCEL</TD>
<TD align=middle><B>3</B></TD></TR>
<TR>
<TD>MB_YESNO</TD>
<TD align=middle><B>4</B></TD></TR>
<TR>
<TD>MB_RETRYCANCEL</TD>
<TD align=middle><B>5</B></TD></TR>
<TR>
<TD> </TD>
<TD align=middle> </TD></TR>
<TR>
<TD>MB_ICONHAND</TD>
<TD align=middle><B>16</B></TD></TR>
<TR>
<TD>MB_ICONQUESTION </TD>
<TD align=middle><B>32</B></TD></TR>
<TR>
<TD>MB_ICONEXCLAMATION</TD>
<TD align=middle><B>48</B></TD></TR>
<TR>
<TD>MB_ICONASTERISK</TD>
<TD align=middle><B>64</B></TD></TR>
<TR>
<TD> </TD>
<TD align=middle> </TD></TR>
<TR>
<TD>MB_APPLMODAL</TD>
<TD align=middle><B>0</B></TD></TR>
<TR>
<TD>MB_SYSTEMMODAL</TD>
<TD align=middle><B>4096</B></TD></TR>
<TR>
<TD>MB_TASKMODAL</TD>
<TD align=middle><B>8192</B></TD></TR>
<TR>
<TD>MB_HELP</TD>
<TD align=middle><B>16384</B></TD></TR></TBODY></TABLE>
<P><BR><BR><B><U><A name=IfMsgBox>IfMsgBox</A>, <return value>,
<Command></U></B><BR><BR>Use this to execute a command based on the
button the user pressed in the MsgBox command. Valid return values from MsgBox
are:<BR>ABORT, CANCEL, IGNORE, NO, OK, RETRY, YES <BR><BR><I>e.g.</I> To put up
a dialog box, with OK and CANCEL buttons, then branch if<BR>the user selects
CANCEL:<BR><BR>; Example Script<BR>MsgBox, 1, AutoIt, This is a test
message<BR>IfMsgBox, CANCEL, Goto, cancellabel<BR>Exit<BR>cancellabel:<BR>; If
the script gets to here, user pressed cancel <BR>MsgBox, 0, AutoIt, The user
pressed cancel<BR><BR><BR><B><U><A name=SetEnv>SetEnv</A>, <variable>,
<value></U></B><BR><BR>This command will set an environment variable to
the specified value.<BR>N.B. This variable only exists within AutoIt you will
not be able to access it from DOS.<BR><BR><I>e.g.</I> To set the Env variable
"ERROR" to "There has been an error":<BR>SetEnv, ERROR, There has been an
error.<BR><BR>To use this variable, use the percent symbol:<BR><BR><I>e.g.</I>
After running the previous command, this will output "There has been an
error":<BR>MsgBox, 1, AutoIt, %ERROR%<BR><BR><BR><B><U><A
name=IfExist>IfExist</A>,<file or
directory>,<Command><BR>IfNotExist,<file or
directory>,<Command><BR></U></B><BR>Will cause the script to execute
<Command> if the specified file or directory exists/doesn't
exists.<BR><BR><I>e.g.</I><BR>IfExist, C:\COMMAND.COM, Goto,
fileexist<BR>Exit<BR>fileexist: <BR><BR>; Script will get to here if
C:\COMMAND.COM DOES exist. <BR>MsgBox, 0, AutoIt, File
exists<BR><BR><BR><B><U><A name=InputBox>InputBox</A>,<variable>,
<title>, <message></U></B><BR><BR>Will cause a dialog box with
<message> to appear. The user can enter text, press OK, and the text will
be stored in the DOS variable <variable>.<BR><BR>e.g.<BR>InputBox,
MyMessage, AutoIt, Please - Enter some text to display!<BR>MsgBox, 0, AutoIt,
%MyMessage%<BR><BR><BR><B><U><A
name=IfEqual>IfEqual</A>,<variable>,<text>,
<Command><BR>IfNotEqual,<variable>, <text>,
<Command><BR></U></B><BR>Will compare the DOS variable <variable>
with <text> and branch depending on the
result.<BR><BR><I>e.g.</I><BR>InputBox, MyVar, AutoIt, Please enter the word:
WOMBLE<BR>IfEqual, MyVar, WOMBLE, Goto, match<BR>MsgBox, 0, AutoIt, You didnt
type the correct word!<BR>Exit<BR>match:<BR>MsgBox, 0, AutoIt, Well done! You
typed in the correct word!<BR><BR><BR><B><U><A
name=Gosub>Gosub</A>,<label><BR>Return<BR></U></B><BR>Just like the old
BASIC commands. Gosub will branch to a specified label. Return will return to
the line after the Gosub command.<BR><BR>e.g.<BR>SetEnv, MyMessage, This is the
first message!<BR>Gosub, mysubroutine<BR>SetEnv, MyMessage, This is the second
message!<BR>Gosub, mysubroutine<BR>SetEnv, MyMessage, This is the third
message!<BR>Gosub, mysubroutine<BR>Exit<BR><BR>mysubroutine:<BR>MsgBox, 0,
AutoIt, %MyMessage%<BR>Return<BR><BR><BR><B><U><A
name=HideAutoItWin>HideAutoItWin</A>, <on | off><BR></U></B><BR>This
command can be used to completely hide the AutoIt window from the user.
Useful for "silent" installs.<BR><BR><I>e.g.</I><BR>HideAutoItWin,
On<BR><BR><BR><B><U><A name=WinMove>WinMove</A>, <Window Title>,
[<Window Text>], <X>, <Y>, <Width>,
<Height></U></B><BR><BR>If the window in Title and Text exists, it is
moved to <X>, <Y> and resized to <Width>,
<Height><BR><BR><I>e.g.</I><BR><BR>Run, notepad.exe<BR>WinWaitActive,
Untitled - Notepad<BR>WinMove, Untitled - Notepad,, 0, 0, 100, 100<BR><BR>This
moves the notepad window to 0,0 and changes the size of the window to
100,100<BR><BR>Remember to include the comma if you don't specify Window
text.<BR><BR><BR><B><U><A name=WinSetTitle>WinSetTitle</A>, <Window
Title>, [Window Text], <New Title></U></B><BR><BR>Use this command to
rename a window.<BR><BR>e.g.<BR>Run, notepad.exe<BR>WinWaitActive, Untitled -
Notepad<BR>WinSetTitle, Untitled - Notepad,, Renamed
Notepad!<BR><BR><BR><U><B><A name=DetectHiddenText>DetectHiddenText</A>, <on
| off></B></U><BR><BR>Some programs use hidden text on windows (e.g. Backup
Exec) this can cause problems when trying to script them. This command
allows you to tell AutoIt whether or not to detect this hidden text.
Default is "off".<BR><BR><BR><B><U><A
name=WinGetActiveTitle>WinGetActiveTitle</A>,
<Variable></U></B><BR><BR>This command gets the title of the active window
and puts it in the DOS variable <Variable><BR><BR><I>e.g.</I><BR>Sleep,
2000<BR>WinGetActiveTitle, myvar<BR>MsgBox, 0, AutoIt, The active window was
%myvar%<BR><BR><BR><B><U><A name=SetWinDelay>SetWinDelay</A>,
<Milliseconds></U></B><BR><BR>This changes the time that AutoIt pauses
after carrying out a window related function (waiting for, minimizing,
restoring, etc.) before continuing. This is useful on very slow machines,
or when you have things like window animation enabled. The default is 500
milliseconds.<BR><BR><I>e.g.</I><BR>SetWinDelay, 2000<BR>Run,
Notepad.exe<BR>WinWaitActive, Untitled - Notepad<BR>Send, Hello<BR><BR>In this
example there would be a pause of 2000 milliseconds (2 seconds) after notepad
has started until the words "Hello" appear.<BR><BR><BR><B><U><A
name=Break>Break</A>, <on | off><BR></U></B><BR>This command tells AutoIt
whether or not the user can close AutoIt. Default is "on" (i.e. user can
close AutoIt)<BR><BR><I>e.g.</I><BR>Break, On<BR><BR><BR><B><U><A
name=WinMinimizeAll>WinMinimizeAll</A></U></B><BR><BR>Simply, this command
minimizes all windows.<BR><BR><BR><B><U><A name=SplashTextOn>SplashTextOn</A>,
<Width>, <Height>, <Title>, <Message>
<BR></U></B><BR>This command brings up a window the specified message and
title. The window stays topmost without interfering with windows behind
it. Useful for automation when you can bring up a "Don't Touch" message
for the user without affecting other windows. <BR><BR><BR><B><U><A
name=SplashTextOff>SplashTextOff</A></U></B> <BR><BR>Removes the splash text
screen from view.<BR><BR><BR><B><U><A name=Repeat>Repeat</A>,
<Count><BR>EndRepeat<BR></U></B><BR>This will repeat a section of the
script up to the following "EndRepeat" command a total of <Count>
times. If <Count> is zero, the loop will be infinite. Repeat
statements can be nested.<BR><BR><I>e.g.</I><BR>Repeat, 10<BR>MsgBox, 0,
Example, This will be output ten times!<BR>EndRepeat<BR><BR></P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A> </P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><B><I><FONT size=5><A name="Send Command Syntax">"Send" Command
Syntax</A></FONT></I></B><BR><BR>The "Send" command syntax is similar to that of
ScriptIt and the Visual Basic "SendKeys" command. Characters are sent as written
with the exception of the following characters:<BR><BR><B>'!'</B><BR>This tells
AutoIt to send an ALT keystroke, therefore "Send,This is text!a" would send the
keys "This is text" and then press "ALT+a". <BR><BR>N.B. Some programs are
very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a".
The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use
lowercase!<BR><BR><B>'+'</B><BR>This tells AutoIt to send a SHIFT keystroke,
therefore "Send,Hell+o" would send the text "HellO". "Send,!+a" would send
"ALT+SHIFT+a".<BR><BR><B>'^'<BR></B>This tells AutoIt to send a CONTROL
keystroke, therefore "Send,^!a" would send "CTRL+ALT+a".<BR><BR>N.B. Some
programs are very choosy about capital letters and CTRL keys, i.e. "^A" is
different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in
doubt, use lowercase!<BR><BR><B>'#'</B><BR>The hash is used as a key delimiter
to make a line easier to read. i.e. "Send, H#e#l#l#o" is the same as
"Send,Hello".<BR><BR><BR>Certain special keys can be sent and should be enclosed
in braces:<BR><BR></P>
<TABLE border=1>
<TBODY>
<TR>
<TD align=middle width="50%"><B><FONT size=4>Send Command</FONT></B></TD>
<TD width="50%">
<P align=center><B><FONT size=4>Resulting Keypress</FONT></B></P></TD></TR>
<TR>
<TD align=middle width="50%">{!}</TD>
<TD width="50%">!</TD></TR>
<TR>
<TD align=middle width="50%">{#}</TD>
<TD width="50%">#</TD></TR>
<TR>
<TD align=middle width="50%">{+}</TD>
<TD width="50%">+</TD></TR>
<TR>
<TD align=middle width="50%">{^}</TD>
<TD width="50%">^</TD></TR>
<TR>
<TD align=middle width="50%">{{}</TD>
<TD width="50%">{</TD></TR>
<TR>
<TD align=middle width="50%">{}}</TD>
<TD width="50%">}</TD></TR>
<TR>
<TD align=middle width="50%">{SPACE}</TD>
<TD width="50%">SPACE</TD></TR>
<TR>
<TD align=middle width="50%">{ENTER}</TD>
<TD width="50%">ENTER</TD></TR>
<TR>
<TD align=middle width="50%">{ALT}</TD>
<TD width="50%">ALT</TD></TR>
<TR>
<TD align=middle width="50%">{BACKSPACE} or {BS}</TD>
<TD width="50%">BACKSPACE</TD></TR>
<TR>
<TD align=middle width="50%">{DELETE} or {DEL}</TD>
<TD width="50%">DELETE</TD></TR>
<TR>
<TD align=middle width="50%">{UP}</TD>
<TD width="50%">Cursor up</TD></TR>
<TR>
<TD align=middle width="50%">{DOWN}</TD>
<TD width="50%">Cursor down</TD></TR>
<TR>
<TD align=middle width="50%">{LEFT}</TD>
<TD width="50%">Cursor left</TD></TR>
<TR>
<TD align=middle width="50%">{RIGHT}</TD>
<TD width="50%">Cursor right</TD></TR>
<TR>
<TD align=middle width="50%">{HOME}</TD>
<TD width="50%">HOME</TD></TR>
<TR>
<TD align=middle width="50%">{END}</TD>
<TD width="50%">END</TD></TR>
<TR>
<TD align=middle width="50%">{ESCAPE} or {ESC}</TD>
<TD width="50%">ESCAPE</TD></TR>
<TR>
<TD align=middle width="50%">{INSERT} or {INS}</TD>
<TD width="50%">INS</TD></TR>
<TR>
<TD align=middle width="50%">{PGUP}</TD>
<TD width="50%">PGUP</TD></TR>
<TR>
<TD align=middle width="50%">{PGDN}</TD>
<TD width="50%">PGDN</TD></TR>
<TR>
<TD align=middle width="50%">{F1} - {F12}</TD>
<TD width="50%">Function keys</TD></TR>
<TR>
<TD align=middle width="50%">{TAB}</TD>
<TD width="50%">TAB</TD></TR>
<TR>
<TD align=middle width="50%">{PRINTSCREEN}</TD>
<TD width="50%">PRINTSCR</TD></TR>
<TR>
<TD align=middle width="50%">{LWIN}</TD>
<TD width="50%">Left Windows key</TD></TR>
<TR>
<TD align=middle width="50%">{RWIN}</TD>
<TD width="50%">Right Windows key</TD></TR>
<TR>
<TD align=middle width="50%">{NUMLOCK}</TD>
<TD width="50%">NUMLOCK</TD></TR>
<TR>
<TD align=middle width="50%">{CTRLBREAK}</TD>
<TD width="50%">Ctrl+break</TD></TR>
<TR>
<TD align=middle width="50%">{PAUSE}</TD>
<TD width="50%">PAUSE</TD></TR>
<TR>
<TD align=middle width="50%">{CAPSLOCK}</TD>
<TD width="50%">CAPSLOCK</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPAD0} - {NUMPAD 9}</TD>
<TD width="50%">Numpad digits</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPADMULT}</TD>
<TD width="50%">Numpad Multiply</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPADADD}</TD>
<TD width="50%">Numpad Add</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPADSUB}</TD>
<TD width="50%">Numpad Subtract</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPADDIV}</TD>
<TD width="50%">Numpad Divide</TD></TR>
<TR>
<TD align=middle width="50%">{NUMPADDOT}</TD>
<TD width="50%">Numpad period</TD></TR>
<TR>
<TD align=middle width="50%">{APPSKEY}</TD>
<TD width="50%">Windows App key</TD></TR></TBODY></TABLE>
<P><BR>Single keys can also be repeated, e.g.<BR>{DEL 4}
Presses the DEL key 4 times<BR>{S 30} Sends
30 'S' characters<BR>+{TAB 4} Presses SHIFT+TAB 4 times<BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back to
Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><B><I><FONT size=5><A name="ADLIB Section">[ADLIB]
Section</A></FONT></I></B><BR><BR>The [ADLIB] section is optional, and if
present should be placed at the end of the script file. The ADLIB section is
designed to cope with unexpected conditions. The ADLIB section consists of
single line commands that check if a window is active and if so, send keys to
it.<BR>The ADLIB section must start with the line "[ADLIB]".<BR><BR>The format
of the a line in the ADLIB section is:<BR><BR><Window Title>,<Window
Text>,<Command><BR><BR>e.g.<BR>Run,Notepad.exe<BR>WinWaitActive,Untitled
- Notepad<BR>Send,12345678#!{F4}<BR>WinWaitClose,Untitled -
Notepad<BR><BR>[ADLIB]<BR>Notepad, save the changes?, Send, !n<BR><BR>Without
the ADLIB section, this script would never end as Notepad would never<BR>close
until someone responded to the message "Do you want to save the
changes?".<BR><BR>ADLIB commands must contain a window title and some text on
the window. If there is no text on the window, or if you don't want to specify
any, then you must use two
commas.<BR><BR><I>e.g.</I><BR>Run,Notepad.exe<BR>WinWaitActive,Untitled -
Notepad<BR>Send,12345678#!{F4}<BR>WinWaitClose,Untitled -
Notepad<BR><BR>[ADLIB]<BR>Notepad,, Send, !n<BR><BR><BR><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back to
Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><B><I><FONT size=5><A name=Examples>Examples</A></FONT></I></B></P>
<P>Some examples are included with this archive, others can be found on the <A
href="http://www.hidden.demon.co.uk/AutoIt/index.html">AutoIt home page</A>.</P>
<P><A href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Table of Contents">Back
to Contents</A></P>
<P><IMG height=6 src="cid:01ae01bee90d$155e49a0$LocalHost@xxxxx" width=800></P>
<P><A name="AutoIt History"><FONT size=5><EM><STRONG>AutoIt
History</STRONG></EM></FONT></A></P>
<P><STRONG><U>16/08/99 - v2.0</U></STRONG></P>
<P><STRONG>NB.</STRONG> Some changes mean that old AutoIt scripts may need to be
modified slightly - Please re-read the documentation carefully if you are
upgrading! Hence the jump from v1.8 to v2.0 - SORRY, but things needed changing
to ease implementation of new commands that have been requested. I personally
use v1.8 for old scripts and v2.0 for any new scripts I write.</P>
<UL>
<LI>Can now send most keystrokes to DOS windows - Finally!
<LI>Changed the way in which <STRONG><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Special Characters">'\'</A></STRONG>,
<STRONG><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Special Characters">','</A></STRONG>
and <STRONG><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Special Characters">'%'</A></STRONG>
are treated - CAREFUL!
<LI>Changed Run
and RunWait
commands. Comma <STRONG>','</STRONG> now delimits working directory.
(therefore '*' is now valid - for wildcards, etc.)
<LI>Added numerous keys that can be sent including WinApps key.
<LI>AutoIt window shows line number and line of script during execution.
<LI>Helpful(?) error messages with line numbers (can't run file, invalid
syntax, etc.)
<LI>Added commands: <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#HideAutoItWin">HideAutoItWin</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinWaitNotActive">WinWaitNotActive</A>,
WinMove, <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinSetTitle">WinSetTitle</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#DetectHiddenText">DetectHiddenText</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinGetActiveTitle">WinGetActiveTitle</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SetWinDelay">SetWinDelay</A>,
Break, <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinMinimizeAll">WinMinimizeAll</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOn">SplashTextOn</A>,
<A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#SplashTextOff">SplashTextOff</A>,
Repeat, <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Repeat">EndRepeat</A>.
<LI>Shows script name as a tooltip on the AutoIt system tray icon.
<LI>Following commands no longer wait for the window to exist before
continuing: <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#WinHide">WinRestore,
WinHide, WinMaximize, WinClose, WinMinimize</A>.
<LI>If run with no parameters, AutoIt will bring up a "File Open" box.
<LI>Window in <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Running AutoIt">"reveal"</A>
mode always stays on top. (Now only one reveal mode required).
<LI>Changed <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#MsgBox">MsgBox</A> command
to include a title, and to not hang around in the background.
<LI>Changed all <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#IfWinExist">"If...."</A>
commands to execute a given command rather than just jumping to a label.
<LI>Changed <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#InputBox">InputBox</A> to
include a title, and to not hang around in the background.
<LI>Invalid commands will now be treated as errors instead of just ignored.
<LI><STRONG><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Special Characters">'\n'</A></STRONG>,
<STRONG><A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Special Characters">'\t'</A></STRONG>
can be used in <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#MsgBox">MsgBox</A> and <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#InputBox">InputBox</A> text
to indicate newlines and tabs.
<LI>Minimizes to a system tray icon. If the <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#HideAutoItWin">HideAutoItWin</A>
command is used nothing is visible at all.
<LI>Changed <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#ADLIB Section">Adlib</A>,
now executes a given command instead of just sending keys.
<LI>Changed Sleep (internal) so that AutoIt window now updates during long <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Sleep">Sleep</A> functions.
<LI>Changed <A
href="file:///C:/Windows/Scripting/AutoIt/HELP.HTM#Gosub">Gosub/Return</A>.
Can now have nested subroutines, only limited by free memory! </LI></UL>
<P> </P>
<P><STRONG><U>02/04/99 - v1.8</U></STRONG><BR></P>
<UL>
<LI>Added MsgBox and IfMsgBox commands. (Note, these have changed from 1.8
beta)
<LI>Added IfExist and IfNotExist commands for files and directories.
<LI>Added DOS environment variable support ( e.g. Send, Path is %PATH% ).
<LI>N.B. Because of this, the percent symbol '%' is now special. If
you<BR>really want to use this symbol you must do it twice ie. %%
<LI>Added SetEnv command.
<LI>Added InputBox command.
<LI>Added IfEqual and IfNotEqual commands.
<LI>Added Gosub and Return commands.
<LI>"Page-fault" bug fixed (when mouse coords are out of range). </LI></UL>
<DIV>------------------SNIP---------------------------------</DIV></FONT></BODY></HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\line_blue.gif"
|