Using scroll wheel as a hotkey Topic is solved

Ask gaming related questions (AHK v1.1 and older)
DMSomke
Posts: 3
Joined: 16 Feb 2024, 08:31

Using scroll wheel as a hotkey

16 Feb 2024, 08:44

Code: Select all

*E:: Suspend, Toggle
~$LShift::
    KeyWait LShift, T0
    If ErrorLevel
        While GetKeyState("LShift","P"){
            Send {LShift Down}
            Send {LShift Up}
        }

How do I use my scroll wheel on my mouse as a hotkey.


[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

[Mod action: Topic moved from "Ask for Help (v2) > Gaming" since this is v1 code.]
Rohwedder
Posts: 7732
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Using scroll wheel as a hotkey

16 Feb 2024, 11:56

Hallo.
try:

Code: Select all

WheelDown::SoundBeep, 4000, 20
WheelUp::SoundBeep, 1000, 20
DMSomke
Posts: 3
Joined: 16 Feb 2024, 08:31

Re: Using scroll wheel as a hotkey

17 Feb 2024, 01:11

I want to change the "E" to my scroll wheel.
gregster
Posts: 9095
Joined: 30 Sep 2013, 06:48

Re: Using scroll wheel as a hotkey  Topic is solved

17 Feb 2024, 01:16

You want to use the Scrollwheel button? That would be MButton::
See https://www.autohotkey.com/docs/v1/KeyList.htm#mouse
DMSomke
Posts: 3
Joined: 16 Feb 2024, 08:31

Re: Using scroll wheel as a hotkey

17 Feb 2024, 02:00

Thank you gregster

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 32 guests