Make a button work as a scrollwheel so I can double pump in Fortnite

Ask gaming related questions (AHK v1.1 and older)
dadda
Posts: 5
Joined: 24 May 2018, 12:21

Make a button work as a scrollwheel so I can double pump in Fortnite

24 May 2018, 12:28

Hi! So I play the game Fortnite, and theres somethiing called "double pumping" in that game, it means that you have two shotguns and switch between them really fast so you can shoot faster. Knowing nothing about AHK and scripting etc how do I make my "G" button work just as if i would press for example, 1 and 2? It's really hard to explain but I kind of want the "G" button to work as a scrollwheel so I can double pump in Fortnite.
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: Make a button work as a scrollwheel so I can double pump in Fortnite

24 May 2018, 14:39

I hope i can help you with those :D

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, %current%
}
else
{
	current = 2
	Send, %current%
}
return

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, {WheelUp}
}
else
{
	current = 2
	Send, {WheelDown}
}
return

Code: Select all

G::Send, {WheelDown}
Last edited by Qysh on 24 May 2018, 21:22, edited 1 time in total.
dadda
Posts: 5
Joined: 24 May 2018, 12:21

Re: Make a button work as a scrollwheel so I can double pump in Fortnite

24 May 2018, 17:08

Qysh wrote:I hope i can help you with those :D

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, %current%
}
else
{
	current = 2
	Send, %current%
}
return

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, {WheelUp}
}
else
{
	current = 2
	Send, {WheelDown}
}
return

Code: Select all

G::Send, {WheelDown}

Do I just copy paste this into an .ahk file?
dadda
Posts: 5
Joined: 24 May 2018, 12:21

Re: Make a button work as a scrollwheel so I can double pump in Fortnite

24 May 2018, 17:35

Qysh wrote:I hope i can help you with those :D

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, %current%
}
else
{
	current = 2
	Send, %current%
}
return

Code: Select all

G::
if(current == 2)
{
	current = 1
	Send, {WheelUp}
}
else
{
	current = 2
	Send, {WheelDown}
}
return

Code: Select all

G::Send, {WheelDown}
Wait I ot it, but it doesn't work when I press shift at the same time :/
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: Make a button work as a scrollwheel so I can double pump in Fortnite

24 May 2018, 21:23

Try it again

Code: Select all

*G::
if(current == 2)
{
	current = 1
	Send, %current%
}
else
{
	current = 2
	Send, %current%
}
return

Code: Select all

*G::
if(current == 2)
{
	current = 1
	Send, {WheelUp}
}
else
{
	current = 2
	Send, {WheelDown}
}
return

Code: Select all

*G::Send, {WheelDown}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 133 guests