arabtion

Untitled

Jan 9th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. Public Class Form1
  2. Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dwExtraInfo As Long)
  3. Private Const mouseclickup = 4
  4. Private Const mouseclickdown = 2
  5. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
  6.  
  7. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  8.  
  9. End Sub
  10.  
  11. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  12. Timer1.Start()
  13. End Sub
  14.  
  15. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  16. Timer2.Start()
  17. End Sub
  18.  
  19. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  20. Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
  21. mouse_event(&H2, 0, 0, 0, 1)
  22. mouse_event(&H4, 0, 0, 0, 1)
  23. End Sub
  24.  
  25. Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
  26. Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
  27. mouse_event(&H8, 0, 0, 0, 1)
  28. mouse_event(&H10, 0, 0, 0, 1)
  29. End Sub
  30.  
  31. Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
  32. TextBox1.Text = TextBox1.Text + 1
  33. End Sub
  34.  
  35. Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
  36. If TextBox1.Text = 100 Then
  37. Me.Close()
  38. End If
  39. End Sub
  40.  
  41. Private Sub Form1_MouseDown(sender As Object, e As MouseEventArgs) Handles Me.MouseDown
  42. Select Case MouseButtons
  43. Case Windows.Forms.MouseButtons.Right
  44. TextBox1.Text = TextBox1.Text + 1
  45. End Select
  46. End Sub
  47.  
  48. Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
  49. Dim hotkey As Boolean
  50. hotkey = GetAsyncKeyState(Keys.F1)
  51. If hotkey = True Then Timer1.Start()
  52. Dim hotkey1 As Boolean
  53. hotkey1 = GetAsyncKeyState(Keys.F2)
  54. If hotkey1 = True Then Timer1.Stop()
  55. End Sub
  56.  
  57. Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged
  58. Timer1.Interval = 1000
  59. End Sub
  60.  
  61. Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
  62. Timer1.Interval = 500
  63. End Sub
  64.  
  65. Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton3.CheckedChanged
  66. Timer1.Interval = 100
  67. End Sub
  68. End Class
Advertisement
Add Comment
Please, Sign In to add comment