home *** CD-ROM | disk | FTP | other *** search
- ; Example Script
- ; ==============
- ;
- ; OS: Windows 9x/NT
- ; Author: Jonathan Bennett (jbennett@hidden.demon.co.uk)
- ;
- ; This script runs a connection to the Internet
- ; You will need to change things like the name of your connection
- ; and usernames and passwords
-
- MsgBox, 4, AutoIt Example, Please examine and edit this file with the name of your Internet connection before use. Run now?
- IfMsgBox, NO, Goto, denied
-
- ; Execute the "Demon Internet" connection
- Run, rundll rnaui.dll\,RnaDial Demon Internet
-
- ; Wait for the connect window to be active
- WinWaitActive, Connect To, Demon Internet
-
- ; Type in our username and password
- Send, !u
- Send, USERNAME
- Send, !p
- Send, PASSWORD
-
- ; Connect
- Send, {ENTER}
-
- ; Wait for the connection window to open then close
- WinWaitActive, Connecting to
- WinWaitClose, Connecting to
-
- ; Finished
- denied:
- Exit
-