Hi everybody,
it would be great to have a setting in the "Functions" section to control brightness with the mouse wheel. Much the same as it is the case with volume. For example placing the cursor on the bottom of the screen.
Regards.
Kavi.
Brightness control with the mouse wheel
Search the Library - there are Brightness Up/Down commands available and you can trigger them with any shortcut. For example you could use
Ctrl + WheelUp - Brightness Up
Ctrl + WheelDown - Brightness Down
Ctrl + WheelUp - Brightness Up
Ctrl + WheelDown - Brightness Down
-
- Posts: 10
- Joined: Jan 2nd, ’22, 18:05
You can add this to the startup script.
Code: Select all
;-----------------------------------------------------------------------------
; Change brightness using scroll wheel in the left side of the screen
;-----------------------------------------------------------------------------
CoordMode, Mouse, Screen
#If isMouseAtEdge()
WheelDown::
Brightness(-5)
Return
WheelUp::
Brightness(5)
Return
#If
isMouseAtEdge(){
MouseGetPos, x
return x <= 1 ; Changed to check left edge
}
Brightness(Offset) {
static wmi := ComObjGet("winmgmts:\\.\root\WMI")
, last := wmi.ExecQuery("SELECT * FROM WmiMonitorBrightness").ItemIndex(0).CurrentBrightness
level := Min(100, Max(1, last + Offset))
if (level != last) {
last := level
wmi.ExecQuery("SELECT * FROM WmiMonitorBrightnessMethods").ItemIndex(0).WmiSetBrightness(0, level)
}
}