怎样用AU3调整鼠标指针移动速度?
网吧的机子,换了批鼠标后稍微划一下指针像飞一样,现在想批量更改鼠标指针移动速度,请教各位大大AU3可以实现吗? FUNCTION ulong SystemParametersInfo(uint uAction,uint uParam,Any lpvParam,uint fuWinIni) LIBRARY "user32.dll " ALIAS FOR "SystemParametersInfoA "SystemParametersInfo(SPI_GETMOUSESPEED,uParam,lpvParam,fuWinIni)
//SPI_GETMOUSESPEED=112
au3搞不来 收藏!用得到。 本帖最后由 netegg 于 2010-7-13 18:02 编辑
Dim Const $SPIF_UPDATEINIFILE = 1
Dim Const $SPIF_SENDWININICHANGE = 2
Dim Const $SPI_GETMOUSE = 3
Dim Const $SPI_SETMOUSE = 4
Dim $tMouse = DllStructCreate('INT MouseThreshold1; INT MouseThreshold2; INTMouseSpeed')
Dim $aResult = DllCall('user32.dll', 'int', 'SystemParametersInfo', 'uint', $SPI_GETMOUSE, 'uint', 0, _
'ptr', DllStructGetPtr($tMouse), 'uint', 0)
If $aResult Then
For $i = 1 To 3
ConsoleWrite(DllStructGetData($tMouse, $i) & @TAB)
Next
ConsoleWrite(@LF)
EndIf
#cs;下面是设置
DllStructSetData($tMouse, 1, 6)
DllStructSetData($tMouse, 2, 10)
DllStructSetData($tMouse, 3, 1)
$aResult = DllCall('user32.dll', 'int', 'SystemParametersInfo', 'uint', $SPI_SETMOUSE, 'uint', 0, _
'ptr', DllStructGetPtr($tMouse), 'uint', BitOR($SPIF_UPDATEINIFILE, $SPIF_SENDWININICHANGE))
#ce
$tMouse = 0
页:
[1]