Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.14 KB | None | 0 0
  1. ;Universal AimKey AimBot Script Support by serge @ucforum
  2.  
  3. #include <ButtonConstants.au3>
  4. #include <ComboConstants.au3>
  5. #include <EditConstants.au3>
  6. #include <GUIConstantsEx.au3>
  7. #include <WindowsConstants.au3>
  8. #include<misc.au3>
  9. #RequireAdmin
  10. #NoTrayIcon
  11.  
  12. Opt("MouseClickDelay", 1)
  13. Opt("MouseClickDownDelay", 1)
  14. Opt("SendKeyDelay", 1)
  15. Opt("SendKeyDownDelay", 1)
  16.  
  17. HotKeySet("{Numpad5}", "SprayTap")
  18. HotKeySet("{Numpad6}", "SingleTap")
  19. HotKeySet("{Del}", "EndApp")
  20. HotKeySet("{Ins}", "Gui")
  21.  
  22. Global $Alive
  23. Global $DelayShot = 50
  24. Global $SingleTapCount = 0
  25.  
  26. Beep(800,200)
  27.  
  28. While 1
  29. Sleep(50)
  30. WEnd
  31.  
  32. func Gui()
  33.  
  34. $Form1 = GUICreate("Delay Shot", 250, 150, 400, 400)
  35. $DelayShot = GUICtrlCreateInput($DelayShot, 25, 50, 200, 0)
  36. $Button1 = GUICtrlCreateButton("Set", 0, 100, 250, 21, $WS_GROUP)
  37. GUISetState(@SW_SHOW)
  38.  
  39. While 1
  40. $nMsg = GUIGetMsg()
  41. If WinActive("Delay Shot") And _IsPressed("0D") Then
  42. Send("{Tab}{Enter}")
  43. EndIf
  44. Switch $nMsg
  45. Case $GUI_EVENT_CLOSE
  46. Exit
  47. Case $Button1
  48. $DelayShot = GUICtrlRead($DelayShot)
  49. GUIDelete($Form1)
  50. EndSwitch
  51. WEnd
  52. EndFunc
  53.  
  54. func SingleTap()
  55. Beep(800,100)
  56.    $Alive = Not $Alive
  57.    While $Alive
  58. Sleep(1)
  59. If _IsPressed("01") Then
  60. If $SingleTapCount = 0 Then
  61. DllCall('user32.dll', 'none', 'mouse_event', 'dword', 128, 'dword', 0, 'dword', 0, 'dword', 1, 'ptr', 0)
  62.  Sleep($DelayShot)
  63. DllCall('user32.dll', 'none', 'mouse_event', 'dword', 256, 'dword', 0, 'dword', 0, 'dword', 1, 'ptr', 0)
  64.   MouseDown("Middle")
  65.    $SingleTapCount = $SingleTapCount + 1
  66. EndIf
  67.     ElseIf Not _IsPressed("01") And $SingleTapCount >= 1 Then
  68.        MouseUp("Middle")
  69.     $SingleTapCount = 0
  70.     EndIf
  71.        WEnd
  72. EndFunc
  73.  
  74. func SprayTap()
  75. Beep(800,100)
  76.    $Alive = Not $Alive
  77.    While $Alive
  78. Sleep(1)
  79. If _IsPressed("01") Then
  80. DllCall('user32.dll', 'none', 'mouse_event', 'dword', 128, 'dword', 0, 'dword', 0, 'dword', 1, 'ptr', 0)
  81.  Sleep($DelayShot)
  82.   MouseDown("Middle")
  83.     ElseIf Not _IsPressed("01") Then
  84. DllCall('user32.dll', 'none', 'mouse_event', 'dword', 256, 'dword', 0, 'dword', 0, 'dword', 1, 'ptr', 0)
  85.        MouseUp("Middle")
  86.     EndIf
  87.        WEnd
  88. EndFunc
  89.  
  90. func EndApp()
  91. Beep(400,700)
  92. Exit 0
  93. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement