home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 April
/
PCWorld_2001-04_cd.bin
/
Software
/
Vyzkuste
/
autoit
/
AutoIt.exe
/
AutoIt.msi
/
Cabs.w1.cab
/
Gosub.aut
< prev
next >
Wrap
Text File
|
1999-09-14
|
571b
|
27 lines
; Example Script
; ==============
;
; OS: Windows 9x/NT
; Author: Jonathan Bennett (jbennett@hidden.demon.co.uk)
;
; Script to show how the Gosub and Return commands work
;
MsgBox, 4, AutoIt Example, Script to demonstrate subroutines. Run?
IfMsgBox, NO, Goto, denied
SetEnv, MyMessage, This is the first message!
Gosub, mysubroutine
SetEnv, MyMessage, This is the second message!
Gosub, mysubroutine
SetEnv, MyMessage, This is the third message!
Gosub, mysubroutine
Exit
mysubroutine:
MsgBox, 0, Example, %MyMessage%
Return
denied:
Exit