Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.82 KB | None | 0 0
  1. #Include <Misc.au3>
  2. $variable=8 ; Variable: 0 = md() ; 1 = mu() ; 2 = md1() ; 3 = mu1() ; 8 =
  3.  
  4. While 1 ; Hearth
  5.     If _IsPressed(58) then ProneCancel() ; X = ProneCancel
  6.     If _IsPressed(10) then FastChange() ; LSHIFT = FastChange
  7.     If _IsPressed(11) then ProneBug() ; CRTL = ProneBug
  8.     If _IsPressed(51) then $variable=0 ; Q = HoldShot
  9.     If _IsPressed(59) then $variable=2 ; Y = AutoShot
  10.     If $variable=0 then md() ; If Hold Left Mouse = Hold Shot
  11.     If $variable=1 then mu() ; If Not Hold Left Mouse After Hold Shot
  12.     If $variable=2 then md1() ; If Hold Left Mouse = Auto Shot
  13.     If $variable=3 then mu1() ; If Not Hold Left Mouse After Auto Shot
  14.     If _IsPressed(61) then $variable=8 ; NUMPAD1 = Turn Off Mousclick Actions
  15.     If _isPressed(60) then Close() ; NUMPAD0 = Close Script Key
  16.     Sleep (15)
  17. WEnd
  18.  
  19. Func ProneCancel() ; ProneCancel ##############################################
  20.     Send("{v down}")
  21.     Sleep (9)
  22.     Send("{v up}")
  23.     Sleep (28)
  24.     Send("{SPACE down}")
  25.     Sleep (9)
  26.     Send("{SPACE up}")
  27.     While _IsPressed(58)
  28.        Sleep (5)
  29.     WEnd
  30. EndFunc
  31.  
  32. Func FastChange() ; FastChange ################################################
  33.     Sleep (390)
  34.     Send("{SPACE down}")
  35.     Sleep (15)
  36.     Send("{SPACE up}")
  37.     While _IsPressed(10)
  38.        Sleep (5)
  39.     WEnd
  40.  EndFunc
  41.  
  42.  Func ProneBug() ; ProneBug ###################################################
  43.     Send("{v down}")
  44.     Send("{SPACE down}")
  45.        while  _IsPressed(11)
  46.           Sleep(10)
  47.        wend
  48.     Send("{v up}")
  49.     Send("{SPACE up}")  
  50. EndFunc
  51.  
  52. Func md() ; If Hold Left Mouse = HoldShot #####################################
  53.     If _IsPressed(01) then Sensido()
  54. EndFunc    
  55.        
  56. Func mu() ; If Not Hold Left Mouse After HoldShot #############################
  57.     If Not _IsPressed(01) then Sensiup()
  58. EndFunc    
  59.    
  60. Func Sensido() ; Left Mouse Get Down ##########################################
  61.     Sleep (100) ; StartUpTime HoldShot
  62.     Send("{k down}")
  63.     $variable=1
  64. EndFunc
  65.  
  66. Func Sensiup() ; Left Mouse Get Up ############################################
  67.     Send("{k up}")
  68.     $variable=0
  69. EndFunc
  70.  
  71. Func md1() ; If Hold Left Mouse = StartUpTime #################################
  72.     If _IsPressed(01) then Sensido1()
  73.     Sleep (15)
  74. EndFunc    
  75.        
  76. Func mu1() ; If Hold Left Mouse After StartUpTime = AutoShot ##################
  77.     Send("{k down}")
  78.     Sleep (5)
  79.     Send("{k up}")
  80.     If Not _IsPressed(01) then Sensiup1() ; LeftMouseUp = StartUpTimeAuto #####
  81. EndFunc    
  82.    
  83. Func Sensido1() ; StartUpTime Autoshot ########################################
  84.     Sleep (100)
  85.     $variable=3
  86.    EndFunc 
  87.  
  88. Func Sensiup1() ; Set StartUpTime AutoShot ####################################
  89.     $variable=2
  90. EndFunc
  91.  
  92. Func Close(); Close Script ####################################################
  93.     Exit
  94. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement