Need help w/ binding scroll wheel down to left click mouse (Hold) Topic is solved

Ask gaming related questions (AHK v1.1 and older)
romarahk2
Posts: 9
Joined: 13 Feb 2021, 00:54

Need help w/ binding scroll wheel down to left click mouse (Hold)

22 Sep 2021, 02:25

Need help making a script that binds scroll wheel down to left click mouse (Hold). I want it to where when I hold left click it inputs mwheeldown constantly until I let go of left click. Thanks in advance
Last edited by BoBo on 12 Apr 2022, 11:24, edited 1 time in total.
Reason: Moved to Gaming section.
Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help w/ binding scroll wheel down to left click mouse (Hold)  Topic is solved

22 Sep 2021, 02:46

Hallo,
try:

Code: Select all

~LButton::
While,GetKeyState("LButton","P")
{
	Send, {WheelDown}
	Sleep, 100
}
Return
romarahk2
Posts: 9
Joined: 13 Feb 2021, 00:54

Re: Need help w/ binding scroll wheel down to left click mouse (Hold)

10 Apr 2022, 18:49

Got it working. Its amazing thanks
romarahk2
Posts: 9
Joined: 13 Feb 2021, 00:54

Re: Need help w/ binding scroll wheel down to left click mouse (Hold)

12 Apr 2022, 10:24

Rohwedder wrote:
22 Sep 2021, 02:46
Hallo,
try:

Code: Select all

~LButton::
While,GetKeyState("LButton","P")
{
	Send, {WheelDown}
	Sleep, 100
}
Return

So this works perfectly. But I actually want to try something else, I want to make it where after i stop holding Mouse 1 it presses "1". This is to make it always select the weapon being fired so it doesn't switch it. Heres an unlisted video showing what im saying. https://www.youtube.com/watch?v=6n3m9C5PrZc
Thanks
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Need help w/ binding scroll wheel down to left click mouse (Hold)

12 Apr 2022, 11:23

This is to make it always select the weapon being fired
Welcome to the 'Gaming'-section of the forum :lolno: :yawn:
Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help w/ binding scroll wheel down to left click mouse (Hold)

12 Apr 2022, 11:53

Then perhaps:

Code: Select all

~LButton::
While,GetKeyState("LButton","P")
{
	Send, {WheelDown}
	Sleep, 100
} ;after i stop holding Mouse 1
Send, 1 ;it presses "1"
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 80 guests