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
Fortnite Double pump Topic is solved
Re: Fortnite Double pump
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
Re: Fortnite Double pump
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
-
- Posts: 1
- Joined: 30 Jun 2018, 19:13
Re: Fortnite Double pump
It works good but I can't turn it off whenever I use it
Re: Fortnite Double pump
Here this changes it from a toggle to a hold. I found it worked better.branam_bailey wrote:It works good but I can't turn it off whenever I use it
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
Who is online
Users browsing this forum: Bing [Bot] and 70 guests