home *** CD-ROM | disk | FTP | other *** search
- ; 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
-