I'm not sure if this has been posted already. This script will make your MButton, combined with a scroll up or down, influence your cursor speed. This is handy for computergames. I was inspired by a buddy of mine that has a button on his mouse that enables him to shift his DPI at any time. My mouse however, only has 3...
Code:
SysGet, VirtualScreenWidth, 78
Half = %VirtualScreenWidth%
EnvDiv, Half, 2
Menu, Tray, Icon , %SystemRoot%\system32\SHELL32.dll, 15
Menu, Tray, NoStandard
Menu, Tray, Add, Exit, Exit
Gui +AlwaysOnTop +LastFound -Caption +ToolWindow
Gui, Color, 000000
Gui, Font, C09FF00
Gui, Font,, Arial
Gui, Font, s35
Gui, Add, Progress, xCenter yCenter h10 W100 c09FF00 Background000000 vIndicator -smooth Range0-30
Gui, Show, x%half% y0 h10 w100, Gear Indicator
GuiControl,, Indicator, 10
DllCall("SystemParametersInfo", Int,113, Int,0, UInt,10, Int,2)
Speed = 2
return
MButton & WheelUp::
If Speed > 20
{
return
}
Else
{
EnvAdd, %Speed%, 2
GuiControl,, Indicator, +1
DllCall("SystemParametersInfo", Int,113, Int,0, UInt,%Speed%, Int,2)
}
return
MButton & WheelDown::
If Speed < 1
{
return
}
Else
{
EnvSub, %Speed%, 2
GuiControl,, Indicator, +-1
DllCall("SystemParametersInfo", Int,113, Int,0, UInt,%Speed%, Int,2)
}
return
Exit:
ExitApp
Hope this helped a few people!