Advertisement
Guest User

AC Help

a guest
Feb 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.73 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.     End Sub
  15.  
  16.     Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles Timer5.Tick
  17.         Randomize()
  18.         Dim speedUp As New Random
  19.  
  20.         Timer5.Interval = speedUp.Next(20, 100)
  21.         If MOUSEEVENTF_LEFTDOWN Then
  22.             mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
  23.         End If
  24.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement