Advertisement
Skiz

Visual basic source code Adf.ly auto bot, autoClicker

Jul 18th, 2013
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 001 Imports Microsoft.Win32
  2. 002 Public Class Form1
  3. 003     Dim proxy As New wvp
  4. 004     Dim one As String
  5. 005     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  6. 006         Button1.Enabled = False
  7. 007         helpfunction()
  8. 008     End Sub
  9. 009     Sub setproxy()
  10. 010         If Form2.ListBox1.Items.Count = 0 Then
  11. 011             If MsgBox(" No proxy countine?", vbYesNo, "") = vbYes Then
  12. 012                 navigate()
  13. 013             Else
  14. 014                 Button1.Enabled = True
  15. 015                 Return
  16. 016             End If
  17. 017         Else
  18. 018             Try
  19. 019                 If one = Nothing Then
  20. 020                     Form2.ListBox1.SelectedIndex = 0
  21. 021                     one = "FUCK !"
  22. 022                 End If
  23. 023                     Dim items As String = Form2.ListBox1.SelectedItem.ToString
  24. 024                     Dim ip As String = items.Split(":"c).First
  25. 025                     Dim port As String = items.Split(":"c).Last
  26. 026                     Form2.ListBox1.SelectedIndex += 1
  27. 027                     proxy.SetProxy(ip.ToString, Convert.ToInt16(port.ToString))
  28. 028                     TextBox4.Text = "Wait for loading proxy..."
  29. 029                     WaitCounter.Start()
  30. 030                     Delay(20)
  31. 031                     navigate()
  32. 032             Catch ex As Exception
  33. 033                 If MsgBox("Bad proxy. Countine with out it?" + vbNewLine + " [" + ex.ToString + "]", vbYesNo, "") = vbYes Then
  34. 034                     navigate()
  35. 035                 Else
  36. 036                     Return
  37. 037                 End If
  38. 038             End Try
  39. 039         End If
  40. 040     End Sub
  41. 041     Private Function helpfunction()
  42. 042         setproxy()
  43. 043     End Function
  44. 044     Private Function navigate()
  45. 045         If TextBox1.Text = Nothing Then
  46. 046             MsgBox("No Link", vbOKOnly, "")
  47. 047             Button1.Enabled = True
  48. 048  
  49. 049         Else
  50. 050             WebBrowser1.Navigate(TextBox1.Text)
  51. 051             TextBox4.Text = "Navigating borwser..."
  52. 052             WaitCounter.Start()
  53. 053             Delay(20)
  54. 054             Try
  55. 055                 WebBrowser1.Document.GetElementById("skip_button").InvokeMember("click")
  56. 056                 TextBox3.Text = TextBox3.Text + 1
  57. 057                 TextBox4.Text = "Skip Button clicked !"
  58. 058                 Delay(10)
  59. 059                 setproxy()
  60. 060             Catch ex As Exception
  61. 061                 TextBox4.Text = "Excaption!" & ex.ToString
  62. 062                 TextBox5.Text = +1
  63. 063                 Delay(10)
  64. 064                 setproxy()
  65. 065             End Try
  66. 066         End If
  67. 067     End Function
  68. 068     Private Sub Wait_tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WaitCounter.Tick
  69. 069         TextBox2.Text = TextBox2.Text + 1
  70. 070  
  71. 071         TextBox1.Enabled = False
  72. 072         Button1.Enabled = False
  73. 073  
  74. 074         Button3.Enabled = False
  75. 075         Button4.Enabled = False
  76. 076         Button5.Enabled = False
  77. 077         If TextBox2.Text > 30 Then
  78. 078             WaitCounter.Stop()
  79. 079  
  80. 080             TextBox1.Enabled = True
  81. 081             Button1.Enabled = True
  82. 082             Button3.Enabled = True
  83. 083             Button4.Enabled = True
  84. 084             Button5.Enabled = True
  85. 085             TextBox2.Text = 0
  86. 086         End If
  87. 087     End Sub
  88. 088     ' -------> ------> ------> ' Not used functions !
  89. 089     Sub Delay(ByVal dblSecs As Double)
  90. 090         Const OneSec As Double = 1.0# / (1440.0# * 60.0#)
  91. 091         Dim dblWaitTil As Date
  92. 092         Now.AddSeconds(OneSec)
  93. 093         dblWaitTil = Now.AddSeconds(OneSec).AddSeconds(dblSecs)
  94. 094         Do Until Now > dblWaitTil
  95. 095             Application.DoEvents() ' Allow windows messages to be processed
  96. 096         Loop
  97. 097     End Sub
  98. 098     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  99. 099         Form2.Show()
  100. 100     End Sub
  101. 101     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  102. 102         WaitCounter.Start()
  103. 103         Delay(20)
  104. 104         proxy.DisableProxy()
  105. 105         WebBrowser1.Navigate("http://www.ipaddrs.com/")
  106. 106     End Sub
  107. 107     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  108. 108         Process.Start("rundll32.exe", "shell32.dll,Control_RunDLL inetcpl.cpl")
  109. 109     End Sub
  110. 110     Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
  111. 111         Application.Restart()
  112. 112     End Sub
  113. 113 End Class
  114. 114 REM x M4TPAC
  115. 115 Public Class wvp
  116. 116     Sub DisableProxy()
  117. 117         Dim regKey As RegistryKey
  118. 118         Try
  119. 119             regKey = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", RegistryKeyPermissionCheck.ReadWriteSubTree)
  120. 120             regKey.SetValue("ProxyEnable", False, RegistryValueKind.DWord)
  121. 121             regKey.Close()
  122. 122  
  123. 123         Catch ex As Exception
  124. 124             MsgBox(ex.ToString)
  125. 125         End Try
  126. 126     End Sub
  127. 127     Public Sub SetProxy(ByVal ServerName As String, ByVal port As Integer)
  128. 128         Dim regkey1 As RegistryKey
  129. 129         regkey1 = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", RegistryKeyPermissionCheck.ReadWriteSubTree)
  130. 130         regkey1.SetValue("ProxyServer", ServerName + ":" + port.ToString(), RegistryValueKind.Unknown)
  131. 131         regkey1.SetValue("ProxyEnable", RegistryKeyPermissionCheck.ReadWriteSubTree, RegistryValueKind.DWord)
  132. 132         regkey1.Close()
  133. 133     End Sub
  134. 134 End Class
  135.  
  136.  
  137. here the download http://adf.ly/S1Pqs
  138.  
  139. here the source code http://adf.ly/SLGJV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement