Advertisement
Dev

Twitter Handle Checker (Source)

Dev
May 17th, 2016
36,243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. Public Class Form1
  2. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  3. ''''''''''''''''''' App Made By Dev xKoVx ''''''''''''''''''''
  4. ''''''''''''''''''' Credits To MRMURK4G3 '''''''''''''''''''''
  5. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  6. Dim ckhandle As String = "Checking Handle ..."
  7. Dim Ahandle As String = "Account Available!"
  8. Dim TError As String = "Please Enter A Twitter Handle you wish to check!"
  9. Dim Asuspend As String = "Account suspended!"
  10. Dim ATaken As String = "Account Taken!"
  11.  
  12. Private Sub EarnButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EarnButton1.Click
  13. Dim res As String = Replace(EarnTextBox1.Text, Space(1), Space(0))
  14. If EarnTextBox1.Text = "Twitter_Handle" Then
  15. MsgBox(TError, MsgBoxStyle.Exclamation)
  16. Else
  17. If EarnTextBox1.Text = "" Then
  18. MsgBox(TError, MsgBoxStyle.Exclamation)
  19. Else
  20. EarnTextBox1.Text = res
  21. WebBrowser1.Navigate("https://twitter.com/" + EarnTextBox1.Text)
  22. Timer1.Start()
  23. End If
  24. End If
  25. End Sub
  26.  
  27. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  28. ProgressBar1.Increment(1)
  29. If ProgressBar1.Value = 100 Then
  30. Timer2.Start()
  31. Timer1.Stop()
  32. End If
  33. Label2.ForeColor = Color.Green
  34. Label2.Text = ckhandle
  35. End Sub
  36.  
  37. Private Sub check_account()
  38.  
  39. 'Account suspended'
  40.  
  41. If WebBrowser1.DocumentText.Contains("Account suspended") Then
  42. Label2.ForeColor = Color.Violet
  43. Label2.Text = Asuspend
  44. System.Threading.Thread.Sleep(500)
  45. Timer2.Stop()
  46.  
  47. ElseIf WebBrowser1.DocumentText.Contains("This account has been suspended. Learn more about why Twitter suspends accounts, or return to your timeline.") Then
  48. Label2.ForeColor = Color.Violet
  49. Label2.Text = Asuspend
  50. System.Threading.Thread.Sleep(500)
  51. Timer2.Stop()
  52.  
  53. ElseIf WebBrowser1.DocumentText.Contains("This account has been suspended") Then
  54. Label2.ForeColor = Color.Violet
  55. Label2.Text = Asuspend
  56. System.Threading.Thread.Sleep(500)
  57. Timer2.Stop()
  58.  
  59. 'Account Taken'
  60.  
  61. ElseIf WebBrowser1.DocumentText.Contains("Tweets") Then
  62. Label2.ForeColor = Color.Red
  63. Label2.Text = ATaken
  64. System.Threading.Thread.Sleep(500)
  65. Timer2.Stop()
  66.  
  67. ElseIf WebBrowser1.DocumentText.Contains("Following") Then
  68. Label2.ForeColor = Color.Red
  69. Label2.Text = ATaken
  70. System.Threading.Thread.Sleep(500)
  71. Timer2.Stop()
  72.  
  73. ElseIf WebBrowser1.DocumentText.Contains("Likes") Then
  74. Label2.ForeColor = Color.Red
  75. Label2.Text = ATaken
  76. System.Threading.Thread.Sleep(500)
  77. Timer2.Stop()
  78.  
  79. ElseIf WebBrowser1.DocumentText.Contains("Followers") Then
  80. Label2.ForeColor = Color.Red
  81. Label2.Text = ATaken
  82. System.Threading.Thread.Sleep(500)
  83. Timer2.Stop()
  84.  
  85. ElseIf WebBrowser1.DocumentText.Contains("Tweets & replies") Then
  86. Label2.ForeColor = Color.Red
  87. Label2.Text = ATaken
  88. System.Threading.Thread.Sleep(500)
  89. Timer2.Stop()
  90.  
  91. ElseIf WebBrowser1.DocumentText.Contains("Media") Then
  92. Label2.ForeColor = Color.Red
  93. Label2.Text = ATaken
  94. System.Threading.Thread.Sleep(500)
  95. Timer2.Stop()
  96.  
  97. ElseIf WebBrowser1.DocumentText.Contains("Edit profile") Then
  98. Label2.ForeColor = Color.Red
  99. Label2.Text = ATaken
  100. System.Threading.Thread.Sleep(500)
  101. Timer2.Stop()
  102.  
  103.  
  104. 'Account Available'
  105.  
  106. ElseIf WebBrowser1.DocumentText.Contains("Sorry, that page doesn’t exist!") Then
  107. Label2.ForeColor = Color.Green
  108. Label2.Text = Ahandle
  109. System.Threading.Thread.Sleep(500)
  110. Timer2.Stop()
  111.  
  112. ElseIf WebBrowser1.DocumentText.Contains("You can search Twitter using the search box below or return to the homepage.") Then
  113. Label2.ForeColor = Color.Green
  114. Label2.Text = Ahandle
  115. System.Threading.Thread.Sleep(500)
  116. Timer2.Stop()
  117. End If
  118. End Sub
  119.  
  120. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  121. If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
  122. check_account()
  123. ProgressBar1.Value = 0
  124. End If
  125. End Sub
  126. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement