Reputation: 47
I've assigned a couple of hotkeys to wheeldown and wheelup. It works, but I'd like to slow down the scrolling action. Is there some way to do that?
1::wheeldown
2::wheelup
Upvotes: 1
Views: 242
Reputation: 86260
Another method is to use a time delay (which is easier to configure because it's in milliseconds. In this example, it's set to 2 seconds (2 thousand milliseconds).
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
}
}
Upvotes: 1
Reputation: 7973
Ellen, does this help?
2::MouseClick, WheelUp, , , 1
1::MouseClick, WheelDown, , , 1
Upvotes: 0