Advertisement
Guest User

Precise Mouse Movement. (AHK)

a guest
Nov 12th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;  This is an Autohotkey Script that slows the mouse to speed1 when you press capslock
  2. ;  Release capslock to return to the original speed
  3. ;  Useful for drawing, games, 3D modelling and a bunch of other things requiring precise movements.
  4.  
  5. DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, 0, UIntP, OriginalMouseSpeed, UInt, 0)
  6.  
  7. capslock::
  8. mousemoveprecise:
  9.  DllCall("SystemParametersInfo",UInt,0x71,UInt,0,UInt,1,UInt,0)
  10. return
  11. capslock UP::
  12. mousemovepreciseEnd:
  13. ;originalMouseSpeed:=10  
  14. ; ^ get this from your mouse options, go to the left and press right key till you get back to your current speed
  15.   DllCall("SystemParametersInfo",UInt,0x71,UInt,0,UInt,originalMouseSpeed,UInt,0)
  16. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement