Jump to content

Changing mouse sensitivity


Recommended Posts

Okay, so I'm trying to change the mouse sensitivity. I find out that the way to do this is to use the SystemParametersInfo function. No matter what I try, it returns true while nothing happens. Here's the code as it is.

#Include <WinAPI.au3>
$result = _WinAPI_SystemParametersInfo("SPI_SETMOUSESPEED", 0, 1)
_WinAPI_SystemParametersInfo("SPIF_UPDATEINIFILE")
_WinAPI_SystemParametersInfo("SPIF_SENDCHANGE")
MsgBox(0, "", String($result))

Here's some more info on the function: http://msdn.microsoft.com/en-us/library/ms724947.aspx

Edited by mblunk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...