Looking for autorun script

Ask gaming related questions (AHK v1.1 and older)
Szynsz
Posts: 33
Joined: 09 Mar 2017, 03:33

Looking for autorun script

20 Jul 2017, 11:46

Hello
Can somebody make script that hold W+Lshitf triggered by F5? I find that script but F4 dont stop script

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
; Author Brent Plays [checkout my Fb page httpwww.facebook.combrentplays]
F4::
SprintToggle := !SprintToggle
If (SprintToggle)
{ Send, {lshift Down}
  Send, {w Down}
}
else
{ Send, {lshift up}
  Send, {w up}
}
return
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Looking for autorun script

20 Jul 2017, 13:30

A couple of issues that I see with that script:

When you turn it on with F4, it holds shift. Next time you hit F4, it actually registers Shift+F4, because the script is holding shift.
Solution: Prefix hotkey with * *F4::

Also, probably a minor issue, but when the script executes

Code: Select all

Send, {lshift Down}
Send, {w Down}
What actually happens when it tries to send W is that it RELEASES shift, then holds W, then re-presses shift, because you asked it to send W, not Shift+W

Solution: Use Blind Send, {Blind}{w Down}

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
; Author Brent Plays [checkout my Fb page httpwww.facebook.combrentplays]
*F4::
SprintToggle := !SprintToggle
If (SprintToggle)
{ Send, {lshift Down}
  Send, {Blind}{w Down}
}
else
{ Send, {lshift up}
  Send, {w up}
}
return
Szynsz
Posts: 33
Joined: 09 Mar 2017, 03:33

Re: Looking for autorun script

21 Jul 2017, 10:36

Its work thx alot :)
Szynsz
Posts: 33
Joined: 09 Mar 2017, 03:33

Re: Looking for autorun script

15 Apr 2018, 09:18

Hello again, ca anybody tell me how change trigger from F4 to Middle Mouse Button?
Szynsz
Posts: 33
Joined: 09 Mar 2017, 03:33

Re: Looking for autorun script

17 Apr 2018, 12:10

Eh sorry , my english is very bad. I meam instead F4 i want MMB. I know what i must change in code but idk for what (idk how its name MMB in code)
Szynsz
Posts: 33
Joined: 09 Mar 2017, 03:33

Re: Looking for autorun script

17 Apr 2018, 14:43

Thx :)
aj65
Posts: 7
Joined: 25 Feb 2019, 13:12

Re: Looking for autorun script

07 Sep 2019, 00:52

Hi, can you help me with a script for Arrow up + shift (when up is pressed, shift should be pressed automatically & when removed, shift should be removed) & home button to deactivate the script?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 73 guests