Guest User

AHK Mouse-holding Script

a guest
Jan 19th, 2012
127
0
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  ; Recommended for catching common errors.
  3. #SingleInstance force
  4. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  5. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  6.  
  7. clickOn=0
  8.  
  9. !MButton::
  10.     if clickOn{
  11.         clickOn=0
  12.         Click Up Left
  13.         Click Up Right
  14.     }
  15.     else{
  16.         clickOn=1
  17.         Click Down Left
  18.         Click Down Right
  19.     }
  20. return
  21.  
  22. ^x::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment