Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ;[Directives]
  2. #NoEnv
  3. #IfWinActive, ahk_class Arma 3
  4. SendMode Input
  5. SetWorkingDir %A_ScriptDir%
  6.  
  7. ;[Hotkeys]
  8. F2:: Hotkey, ~LButton, Toggle
  9. Pause::Suspend
  10.  
  11. ;[Script]
  12. ~Lbutton::
  13. ~Rbutton::
  14. While ((L:=GetKeyState("LButton","P")) + (R:=GetKeyState("RButton","P"))){
  15.  
  16. If (L && R)
  17.  
  18. {
  19. DllCall("mouse_event", uint, 1, int, -2, int, 4, uint, 0, int, 0)
  20. Sleep, 15
  21. DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
  22. Sleep, 5
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement