[FUNC]MouseIsOver

来源:互联网 发布:化学结构 数据可视化 编辑:程序博客网 时间:2024/06/04 01:28

通过该脚本,我们可以在任务栏上滚动鼠标滚轮来快速调节音量。

#If MouseIsOver("ahk_class Shell_TrayWnd")WheelUp::Send {Volume_Up}WheelDown::Send {Volume_Down}MouseIsOver(WinTitle) {    MouseGetPos,,, Win    return WinExist(WinTitle . " ahk_id " . Win)}

 转自:https://zh.wikipedia.org/wiki/AutoHotkey