Fortnite Double pump Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Noob_gamer051901

Fortnite Double pump  Topic is solved

01 Jun 2018, 03:04

I'm trying to use a code in fortnite to Double pump the key bid is 'f' . Though it doesn't work when i jump or move only when i stand still, i guess this is because i'm pressing w,a,s,d,space,shift the same time as my key bind 'f'. So how would i incorporate this into my code:

f::
lbutton_count++
If (lbutton_count = 1)
{
Send {9}
Sleep, 800
Send {LButton}
}
If (lbutton_count = 2)
{
Send {0}
Sleep, 800
Send {LButton}
}
If (lbutton_count = 2)
{
lbutton_count := 0
}
return

PgDn::Suspend
Cakes
Posts: 23
Joined: 23 Apr 2018, 09:56

Re: Fortnite Double pump

02 Jun 2018, 10:04

Noob_gamer051901 wrote:I'm trying to use a code in fortnite to Double pump the key bid is 'f' . Though it doesn't work when i jump or move only when i stand still, i guess this is because i'm pressing w,a,s,d,space,shift the same time as my key bind 'f'. So how would i incorporate this into my code:

f::
lbutton_count++
If (lbutton_count = 1)
{
Send {9}
Send {LButton}
}
If (lbutton_count = 2)
{
Send {0}
Sleep, 800
Send {LButton}
}
If (lbutton_count = 2)
{
lbutton_count := 0
}
return

PgDn::Suspend

I'm curious how lbutton_count gets increased? Are you expecting it to loop and increment every time you press f? You can also try adding #InstallKeybdHook. I found it helped with fortnite. With the change below, I'm assuming you have the first pump bound to "9". I think i found your problem when you move and jump. Try adding the $ modifier. I think it's sending some different keystrokes when you combine the keys. I believe it will suppress that.

Code: Select all

$f::
	Send {9}
	Send {LButton down}
	Toggle := !Toggle
	while Toggle
	{
		Send {0}
		Sleep, 800
		Send {9}
		Sleep, 800
	}	
	Send {LButton up}
return
 
PgDn::Suspend
Cakes
Posts: 23
Joined: 23 Apr 2018, 09:56

Re: Fortnite Double pump

11 Jun 2018, 10:13

Ok, so there was some issue for sure. This is my working copy. Replace whatever keys you want. I'm looking forward to being thirsted by my own script.

Code: Select all

#IfWinActive Fortnite
#MaxThreadsPerHotkey 2
MButton::
	toggle := !toggle
	Loop
	{
		if !toggle
			break
		else
			Gosub, Dpump
	}
return
#MaxThreadsPerHotkey 1
Dpump:
{
	Send {4}
	Sleep, 800
	Send {Lbutton}
	Send {LShift down}
	Send {3}
	Sleep, 800
	Send {Lbutton}
	Send {LShift down}
}
return
#IfWinActive
branam_bailey
Posts: 1
Joined: 30 Jun 2018, 19:13

Re: Fortnite Double pump

30 Jun 2018, 20:28

It works good but I can't turn it off whenever I use it
Cakes
Posts: 23
Joined: 23 Apr 2018, 09:56

Re: Fortnite Double pump

06 Jul 2018, 18:06

branam_bailey wrote:It works good but I can't turn it off whenever I use it
Here this changes it from a toggle to a hold. I found it worked better.

Code: Select all

#MaxThreadsPerHotkey 2
MButton::
	While GetKeyState("MButton","P")
	{
		Gosub, Dpump
	}
return
#MaxThreadsPerHotkey 1
Dpump:
{
	Send {4}
	Sleep, 800
	Send {LButton}
	GoSub, Sprint	
	if (!GetKeyState("MButton","P"))
		return
	Send {3}
	Sleep, 800
	Send {LButton}
	GoSub, Sprint
}
return
Sprint:
{
	Send {LShift up}{LShift down} 
}
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: mikeyww and 90 guests