Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.74 KB | None | 0 0
  1.     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  2.  
  3.         Randomize()
  4.         Dim speedDown As New Random
  5.         Dim min As Decimal
  6.         Dim max As Decimal
  7.  
  8.         min = 1000 / FlatTrackBar2.Value
  9.         max = 600 / FlatTrackBar1.Value
  10.         Timer1.Interval = speedDown.Next(max, min)
  11.  
  12.         mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
  13.         Timer5.Start()
  14.  
  15.     End Sub
  16.  
  17.     Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles Timer5.Tick
  18.         Randomize()
  19.         Dim speedUp As New Random
  20.         Timer5.Interval = speedUp.Next(20, 100)
  21.  
  22.         If MouseButtons = MouseButtons.Left Then
  23.             mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
  24.         End If
  25.  
  26.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement