Advertisement
Guest User

Untitled

a guest
Aug 29th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.72 KB | None | 0 0
  1. HotKeySet("{F3}", "WaitScript")
  2. HotKeySet("{F4}", "StartScript")
  3.  
  4. Sleep(10000)
  5.  
  6. Func WaitScript()
  7.    While True
  8.       Sleep(1000)
  9.    WEnd
  10. EndFunc
  11.  
  12. Func StartScript()
  13.    While True
  14.       Sleep(Random(1000, 10000, 1))
  15.       $action = Random(0,3,1)
  16.       If $action == 0 Then
  17.          Send("{w down}")
  18.          Sleep(Random(100,1000))
  19.       EndIf
  20.       If $action == 1 Then
  21.          Send("{w down}")
  22.          Send("{d down}")
  23.          Sleep(Random(100,1000))
  24.       EndIf
  25.       If $action == 2 Then
  26.          Send("{s down}")
  27.          Send("{a down}")
  28.          Sleep(Random(100,1000))
  29.       EndIf
  30.       If $action == 3 Then
  31.          Send("{s down}")
  32.          Sleep(Random(100,1000))
  33.       EndIf
  34.       Send("{a up}")
  35.       Send("{d up}")
  36.       Send("{s up}")
  37.       Send("{w up}")
  38.       Send("!{TAB}")
  39.    WEnd
  40. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement