首页 > 解决方案 > 用于滚动的自动热键脚本

问题描述

所以我对自动热键不太熟悉,但我希望有人帮我编写一个脚本,该脚本每秒向上滚动鼠标滚轮,并通过按住特定键触发。

提前致谢!

标签: autohotkey

解决方案


F1::
    while GetKeyState("F1", "P") ; while holding down F1
    {
        SendInput, {WheelDown}   ; send this command to the active window
        Sleep, 1000              ; every second (1000 ms)
    }
return

https://www.autohotkey.com/docs/commands/While.htm


推荐阅读