自动热键脚本进行滚动

时间:2020-03-31 20:10:39

标签: autohotkey

因此,我不是那个拥有自动热键功能的人,但是我想请我帮我编写一个脚本,该脚本每秒向上滚动鼠标滚轮,并通过按住特定键来触发。

谢谢!

1 个答案:

答案 0 :(得分:1)

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