Page 1 of 1

scrolling script

Posted: 12 Jun 2021, 09:17
by DuckyLikesFood
is there any way that when i press spacebar then it will scroll up/down?

Re: scrolling script

Posted: 12 Jun 2021, 09:20
by mikeyww

Code: Select all

Space::Send {WheelDown}
+Space::Send {WheelUp}

Re: scrolling script

Posted: 12 Jun 2021, 09:55
by DuckyLikesFood
mikeyww wrote:
12 Jun 2021, 09:20

Code: Select all

Space::Send {WheelDown}
+Space::Send {WheelUp}
is there any way to make it if i hold space it will constantly scroll?

Re: scrolling script

Posted: 12 Jun 2021, 12:10
by mikeyww

Code: Select all

#InstallKeybdHook
Space::
+Space::
If key
 Return
key := GetKeyState("Shift", "P") ? "{WheelUp}" : "{WheelDown}"
SetTimer, Go, 15
Return
Go:
Send %key%
Return
Shift Up::
Space Up::
SetTimer, Go, Off
KeyWait, Shift
KeyWait, Space
key := False
Return