Skip to content

Instantly share code, notes, and snippets.

@rtomaszewski
Created February 10, 2013 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtomaszewski/4751556 to your computer and use it in GitHub Desktop.
Save rtomaszewski/4751556 to your computer and use it in GitHub Desktop.
autoit script to change mouse wheel sensitivity
; This program adjust scroling of the mouse wheel on windows.
GLOBAL CONST $SPI_SETWHEELSCROLLLINES = 105
$SPIF_UPDATEINIFILE = 0x1
$SPIF_SENDWININICHANGE = 0x2
$SPIF_SENDCHANGE = $SPIF_SENDWININICHANGE
$WHEEL_PAGESCROLL = 4294967295 ; Use this, if you want scroll one Screen at a time
$linesToScroll = 3 ; Here come the lines
$err = DllCall("user32.dll", "int", "SystemParametersInfo", _
"int", $SPI_SETWHEELSCROLLLINES, _
"int", $linesToScroll, _
"int", 0, _
"int", BitOR($SPIF_UPDATEINIFILE, $SPIF_SENDWININICHANGE))
If @error <> 0 Then
MsgBox( 4096, "Dll Error!!!", "There was an error making the Dll call." & @CR & "Error Code: " & @error )
EndIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment