只有鼠标移到任务栏上时才有效向上滚动增大音量向下滚动减小音量按下中键(滚轮)静音~lbutton & enter:: exitapp ~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 }