daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Sep 12th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. Insert:: Hotkey, ~LButton, Toggle
  6. ; SS
  7. 9::Suspend
  8.  
  9. ~Lbutton::
  10.  
  11. ~Rbutton::
  12.  
  13. While ((L:=GetKeyState("LButton","P")) + (R:=GetKeyState("RButton","P"))){
  14.  
  15. If (L && R)
  16.  
  17.     {    
  18.         DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
  19.         Sleep, 5
  20.         DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
  21.         Sleep, 5
  22.     }
  23.  
  24. else if L
  25.  
  26. {    
  27.         DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
  28.         Sleep, 0
  29.         DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
  30.         Sleep, 0
  31.     }
  32.  
  33. }
  34.  
  35. Return
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top