aacable

Howto create Win-7 PPPoE Dialer installer using Auto-iT !

Sep 27th, 2011
1,818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. #cs ----------------------------------------------------------------------------
  2. AutoIt Version : 3.3.6.1
  3. Author : SYED JAHANZAIB
  4. Web : http://aacable.wordpress.com
  5. Script Function: Template AutoIt script. for PPPoE Dialer Installer
  6. OS Supported : Windows 7
  7. Dated : 27/09/2011
  8. #ce ----------------------------------------------------------------------------
  9. ; Script Start - Add your code below here
  10.  
  11. $DELAY = 300
  12. $answer = MsgBox(4, "PPPOE Connection", "This script will create a PPPOE DIALER, Do you want to Continue?")
  13. If $answer = 7 Then
  14. Exit
  15. EndIf
  16.  
  17. WinMinimizeAll ( )
  18. ; Put Logo in front and do installation in background, place dialer.jpg in the same folder
  19. ; From you have launched dialer.
  20. SplashImageOn("Please wait Few Seconds While Installer Installs PPPoE Dialer ", "dialer.jpg", 800,650)
  21.  
  22. $COMPANY_NAME = ("Type Your pppoe service name here")
  23. ; Example $COMPANY_NAME = ("MY_ISP")
  24. $DELAY = 300
  25.  
  26. ; Run Windows 7 Network Setup
  27. Run("control.exe /name Microsoft.NetworkAndSharingCenter")
  28. Sleep($DELAY)
  29.  
  30. ; Send TAB 7 times to Select 'setup a new connection'
  31. Send("{TAB 7}")
  32.  
  33. ; Send Enter to Launch 'setup a new connection'
  34. Send("{ENTER}")
  35.  
  36. ; Send Next to select 'Connect to Internet'
  37. Sleep($DELAY)
  38. Send("!n")
  39.  
  40. ; Send 'S' to select 'Setup a new connection anyway
  41. Sleep($DELAY)
  42. Send("!s")
  43.  
  44. ;Check Duplicate Connection ???
  45.  
  46. Sleep($DELAY)
  47. Send("!n")
  48.  
  49. ; Send 'r' to select 'Broadband PPPoE'
  50. Sleep($DELAY)
  51. Send("!r")
  52.  
  53. ; Send TAB 4 times to Enter 'ISP NAME'
  54. Sleep($DELAY)
  55. Send("{TAB 4}")
  56. Send($COMPANY_NAME)
  57. Sleep($DELAY)
  58.  
  59. ; Send 'c' to connect $COMPANY_NAME service to contiue further
  60. Sleep($DELAY)
  61. Send("!c")
  62.  
  63. ; Send 's' to skip connect '$comapany name' service to contiue further
  64. Sleep($DELAY)
  65. Send("!s")
  66.  
  67. ; Send 'c' to close.
  68. Sleep($DELAY)
  69. Send("!c")
  70.  
  71. WinClose("Network Connections")
  72. Run("control.exe /name Microsoft.NetworkAndSharingCenter")
  73. Sleep($DELAY)
  74. Send("!F")
  75. Send("c")
  76. SplashOff ( )
  77. Sleep($DELAY)
  78. Run("control ncpa.cpl")
  79. WinWaitActive("Network Connections")
  80. Sleep($DELAY)
  81. ;send ( "!{TAB}" )
  82. Sleep($DELAY)
  83. MsgBox(0, "Setup Complete", "Your Dialer have been installed , Click Connect on " & $COMPANY_NAME & " to initiate Dialing :) ")
  84.  
Advertisement
Add Comment
Please, Sign In to add comment