Advertisement
Guest User

Untitled

a guest
Feb 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.30 KB | None | 0 0
  1. $Var = False
  2. $aPos = MouseGetPos()
  3. HotKeySet ("{F7}" , "toggle")
  4. HotKeySet ("{F8}" , "exit1")
  5.  
  6. While True
  7.     If $Var Then
  8.         MouseMove($aPos[0], $aPos[1])
  9.         MouseClick ( "" )
  10.         Sleep(25)
  11.     EndIf
  12. WEnd
  13.  
  14. Func toggle()
  15.     $Var = Not $Var
  16.     $aPos = MouseGetPos()
  17.  
  18. EndFunc
  19.  
  20. Func exit1()
  21.     Exit
  22. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement