Advertisement
DevTricks

Антиотдача с переключателем через DLLCall

Oct 18th, 2022
2,171
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sw = 0;
  2. ToolTip, Скрипт запущен. Включение/Выключение производится по клавише F4 ,50, 100
  3. SetTimer, RemoveToolTip, -2000
  4.  
  5. F4::
  6.   if (sw = 0)
  7.   {
  8.     ToolTip, Script ON ,50, 100
  9.     SetTimer, RemoveToolTip, -2000
  10.     sw = 1
  11.   }
  12.   else
  13.   {
  14.     ToolTip, Script OFF ,50, 100
  15.     SetTimer, RemoveToolTip, -2000
  16.       sw = 0
  17.   }
  18. return
  19.  
  20.  
  21. ~$LButton::
  22.     if (sw = 1)
  23.     {
  24.     SetTimer, Shoot, 0
  25.     }
  26. return
  27.  
  28. ~$LButton Up::
  29.     if (sw = 1)
  30.     {
  31.     SetTimer, Shoot, Off
  32.     }
  33. return
  34. -------------------------------------
  35. RemoveToolTip: ;Удаление подсказки
  36. ToolTip
  37. return
  38.  
  39. Shoot:
  40.     mouseXY(3,3)
  41.     Sleep, 8
  42.     mouseXY(3,-3)
  43.     Sleep, 8
  44.     mouseXY(-3 ,-3)
  45.     Sleep, 8
  46.     mouseXY(-3 ,3)
  47.     Sleep, 8
  48. Return
  49.  
  50. mouseXY(x,y)
  51. {
  52.     DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement