Created
February 10, 2013 23:45
-
-
Save rtomaszewski/4751556 to your computer and use it in GitHub Desktop.
autoit script to change mouse wheel sensitivity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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