Code: Select all
CheckMousePosition(){
CoordMode, Mouse, Screen
MouseGetPos , MouseXFullScreenHotkey, MouseYFullScreenHotkey
If (MouseXFullScreenHotkey > 1915) AND (MouseYFullScreenHotkey < 5)
return 2
If (MouseXFullScreenHotkey < 5) AND (MouseYFullScreenHotkey < 5)
return 1
}
#If CheckMousePosition() = 2
WheelUp::run A:\nircmd-x64\nircmd.exe changebrightness +10
WheelDown::run A:\nircmd-x64\nircmd.exe changebrightness -10
#If CheckMousePosition() = 1
WheelUp::Volume_Up
WheelDown::Volume_Down
#If
You will need another program called nircmd for changing screen brightness, download it, and edit the A:\nircmd-x64... according to the path of your nircmd installation.
My screen's resolution is 1920 by 1080, use WindowSpy to change the numbers, 1915, and 5 to your screen resolution accordingly.
You can add more corners following the same procedure with the help of WindowSpy.
Good luck! Hope it helps!