scrolling script

Ask gaming related questions (AHK v1.1 and older)
DuckyLikesFood
Posts: 3
Joined: 04 Jun 2021, 11:51

scrolling script

12 Jun 2021, 09:17

is there any way that when i press spacebar then it will scroll up/down?
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: scrolling script

12 Jun 2021, 09:20

Code: Select all

Space::Send {WheelDown}
+Space::Send {WheelUp}
DuckyLikesFood
Posts: 3
Joined: 04 Jun 2021, 11:51

Re: scrolling script

12 Jun 2021, 09:55

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?
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: scrolling script

12 Jun 2021, 12:10

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 84 guests