Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- 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)
- Private Const mouseclickup = 4
- Private Const mouseclickdown = 2
- Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
- Timer1.Start()
- End Sub
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Timer2.Start()
- End Sub
- Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
- Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
- mouse_event(&H2, 0, 0, 0, 1)
- mouse_event(&H4, 0, 0, 0, 1)
- End Sub
- Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
- Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
- mouse_event(&H8, 0, 0, 0, 1)
- mouse_event(&H10, 0, 0, 0, 1)
- End Sub
- Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
- TextBox1.Text = TextBox1.Text + 1
- End Sub
- Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
- If TextBox1.Text = 100 Then
- Me.Close()
- End If
- End Sub
- Private Sub Form1_MouseDown(sender As Object, e As MouseEventArgs) Handles Me.MouseDown
- Select Case MouseButtons
- Case Windows.Forms.MouseButtons.Right
- TextBox1.Text = TextBox1.Text + 1
- End Select
- End Sub
- Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
- Dim hotkey As Boolean
- hotkey = GetAsyncKeyState(Keys.F1)
- If hotkey = True Then Timer1.Start()
- Dim hotkey1 As Boolean
- hotkey1 = GetAsyncKeyState(Keys.F2)
- If hotkey1 = True Then Timer1.Stop()
- End Sub
- Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged
- Timer1.Interval = 1000
- End Sub
- Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
- Timer1.Interval = 500
- End Sub
- Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton3.CheckedChanged
- Timer1.Interval = 100
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment