Now the notification bar has two identical icons, which is a bit ugly. If possible, could you add the following function: alt +Wheel to adjust the brightness
Code: Select all
;scroll middle botton to change the browser tabs
#IfWinActive ahk_class Chrome_WidgetWin_1
~$WheelDown::
~$WheelUp::
MouseGetPos,, ypos
If (ypos>40) Or (ypos<0)
Return
IfEqual,A_ThisHotkey,~$WheelDown, Send ^{PgDn}
Else Send ^{PgUp}
Return
~LButton::
WinGetPos,,, w, h, A
MouseGetPos,xpos, ypos
WinGet,Mom,MinMax
If ((ypos>45)And(Mom<1))Or((ypos>28)And(Mom>0)) Or (ypos<0)
Return
If (A_PriorHotkey="~LButton") and (A_TimeSincePriorHotkey<200)
send ^w
Return
Code: Select all
;on windows task bar ,scroll up to volume+,scroll down to volume-
~WheelUp::
if (existclass("ahk_class Shell_TrayWnd")=1)
Send,{Volume_Up}
Return
~WheelDown::
if (existclass("ahk_class Shell_TrayWnd")=1)
Send,{Volume_Down}
Return
~MButton::
if (existclass("ahk_class Shell_TrayWnd")=1)
Send,{Volume_Mute}
Return
Existclass(class)
{
MouseGetPos,,,win
WinGet,winid,id,%class%
if win = %winid%
Return,1
Else
Return,0
}
Return