Skip to content

Instantly share code, notes, and snippets.

@metaflow
Created May 18, 2021 18:22
Show Gist options
  • Save metaflow/dd0b38a66b74dad27d6af04358fbae40 to your computer and use it in GitHub Desktop.
Save metaflow/dd0b38a66b74dad27d6af04358fbae40 to your computer and use it in GitHub Desktop.
change mouse speed
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
Global SPIProc, User32Module
User32Module := DllCall("GetModuleHandle", Str, "user32", "Ptr")
SPIProc := DllCall("GetProcAddress", "Ptr", User32Module, "AStr", "SystemParametersInfoW", "Ptr")
; Hotkeys are "WIN+F1" and "WIN+F2"
#F1::DllCall(SPIProc, Int, 0x71, Int, 0, UInt, 10, Int, 0) ; 1x
#F2::DllCall(SPIProc, Int, 0x71, Int, 0, UInt, 6, Int, 0) ; 0.5 speed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment