Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs ----------------------------------------------------------------------------
- AutoIt Version : 3.3.6.1
- Author : SYED JAHANZAIB
- Email : aacable@hotmail.com
- Web : http://aacable.wordpress.com
- Script Function: Template AutoIt script. for PPPoE Dialer Installer
- OS Supported : Windows 7
- Dated : 27/09/2011
- #ce ----------------------------------------------------------------------------
- ; Script Start - Add your code below here
- $DELAY = 300
- $answer = MsgBox(4, "PPPOE Connection", "This script will create a PPPOE DIALER, Do you want to Continue?")
- If $answer = 7 Then
- Exit
- EndIf
- WinMinimizeAll ( )
- ; Put Logo in front and do installation in background, place dialer.jpg in the same folder
- ; From you have launched dialer.
- SplashImageOn("Please wait Few Seconds While Installer Installs PPPoE Dialer ", "dialer.jpg", 800,650)
- $COMPANY_NAME = ("PAK_NET")
- ; Example $COMPANY_NAME = ("MY_ISP")
- $DELAY = 300
- ; Run Windows 7 Network Setup
- Run("control.exe /name Microsoft.NetworkAndSharingCenter")
- Sleep($DELAY)
- ; Send TAB 9 times to Select 'setup a new connection'
- Send("{TAB 9}")
- ; Send Enter to Launch 'setup a new connection'
- Send("{ENTER}")
- ; Send Next to select 'Connect to Internet'
- Sleep($DELAY)
- Send("!n")
- ; Send 'S' to select 'Setup a new connection anyway
- Sleep($DELAY)
- Send("!s")
- ;Check Duplicate Connection ???
- Sleep($DELAY)
- Send("!n")
- ; Send 'r' to select 'Broadband PPPoE'
- Sleep($DELAY)
- Send("!r")
- ; Send TAB 4 times to Enter 'ISP NAME'
- Sleep($DELAY)
- Send("{TAB 4}")
- Send($COMPANY_NAME)
- Sleep($DELAY)
- ; Send 'c' to connect $COMPANY_NAME service to contiue further
- Sleep($DELAY)
- Send("!c")
- ; Send 's' to skip connect '$comapany name' service to contiue further
- Sleep($DELAY)
- Send("!s")
- ; Send 'c' to close.
- Sleep($DELAY)
- Send("!c")
- WinClose("Network Connections")
- Run("control.exe /name Microsoft.NetworkAndSharingCenter")
- Sleep($DELAY)
- Send("!F")
- Send("c")
- SplashOff ( )
- Sleep($DELAY)
- Run("control ncpa.cpl")
- WinWaitActive("Network Connections")
- Sleep($DELAY)
- ;send ( "!{TAB}" )
- Sleep($DELAY)
- MsgBox(0, "Setup Complete", "Your Dialer have been installed , Click Connect on " & $COMPANY_NAME & " to initiate Dialing :) ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement