I really hope you could help me with this.
I wanted to slow down my mouse while holding f & Space down, and luckily found a code that worked when I tried LWin (below), but didn't for f & Space (below). Please kindly help me guys.
Love our community!!
Code: Select all
; SlowDown
LWin::
SPI_GETMOUSESPEED = 0x70
SPI_SETMOUSESPEED = 0x71
DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, O, UIntP, OrigMouseSpeed, UInt, 0)
DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, O, UInt, 1, UInt, 0)
Keywait LWin
return
LWin up::DllCall("SystemParametersInfo", UInt, 0x71, UInt, O, UInt, OrigMouseSpeed, UInt, 0)
; SlowDown
f & Space::
SPI_GETMOUSESPEED = 0x70
SPI_SETMOUSESPEED = 0x71
DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, O, UIntP, OrigMouseSpeed, UInt, 0)
DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, O, UInt, 1, UInt, 0)
Keywait f & Space
return
f & Space up::DllCall("SystemParametersInfo", UInt, 0x71, UInt, O, UInt, OrigMouseSpeed, UInt, 0)