remapping scroll not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tosia
Posts: 1
Joined: 30 Apr 2024, 07:15

remapping scroll not working

Post by tosia » 30 Apr 2024, 07:24

hi, i just wanted to ask if someone could help me with this script,

Code: Select all

XButton1::
Send, {WheelUp 2}
return

XButton2::
Send, {WheelDown 2}
return
when i open the script it says that its working but never actually scrolls
Last edited by gregster on 30 Apr 2024, 07:39, edited 1 time in total.
Reason: Moved topic from AHK v2 help since this is v1 code.

User avatar
mikeyww
Posts: 28871
Joined: 09 Sep 2014, 18:38

Re: remapping scroll not working

Post by mikeyww » 30 Apr 2024, 08:11

Welcome to this AutoHotkey forum!

You could try this one in Notepad.

Code: Select all

#Requires AutoHotkey v1.1.33.11
ComObjCreate("SAPI.SpVoice").Speak("It's working!")

XButton1::
While GetKeyState("XButton1", "P") {
 SendEvent {WheelUp 2}
 Sleep 30
}
Return
If you are new to AHK, I recommend using its current version, which is v2, instead of this older deprecated version that is no longer developed.

Post Reply

Return to “Ask for Help (v1)”