简体   繁体   English

用于滚动的自动热键脚本

[英]Auto Hotkey Script for scrolling

So im not that farmiliar with Auto Hotkey but i would like somone to help me writing a script that scrolls the mouse wheel up every second and is triggered by holding down a specific key.所以我对自动热键不太熟悉,但我希望有人帮助我编写一个脚本,该脚本每秒向上滚动鼠标滚轮,并通过按住特定键触发。

Thanks in advance!提前致谢!

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 https://www.autohotkey.com/docs/commands/While.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM