1

我已经为wheeldown 和wheelup 分配了几个热键。它有效,但我想减慢滚动动作。有没有办法做到这一点?

1::wheeldown

2::wheelup
4

2 回答 2

1

另一种方法是使用时间延迟(这更容易配置,因为它以毫秒为单位。在此示例中,它设置为 2 秒(2000 毫秒)。

1::scrollup(2000)
2::scrolldown(2000)

scrolldown(freq) {
    static time=A_TickCount
    new_time := A_TickCount

    if(new_time - time > freq) {
        SendInput {WheelDown}
        time := new_time
    }
}

scrollup(freq) {
    static time=A_TickCount
    new_time := A_TickCount

    if(new_time - time > freq) {
        SendInput {WheelUp}
        time := new_time
    }
}
于 2013-05-01T23:36:24.413 回答
0

艾伦,这有帮助吗?

2::MouseClick, WheelUp, , , 1
1::MouseClick, WheelDown, , , 1
于 2013-05-01T08:24:03.480 回答