Playing a lot of RDR2 for the first time. The minigame “Five Finger Filet” annoys the hell outta me. So wrote an AutoHotKey script for it. It goes about 12 fillets(?) per round.

`#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

keys := [“s”, “d”, “a”, “s”, “a”]

SetKeyDelay, 0, 50
^a::
While !(GetKeyState(“x”, “P”))
{
for key, val in keys
{
Send {w down}
Sleep 50
Send {w up}
Sleep 100
Send {%val% down}
Sleep 50
Send {%val% up}
Sleep 100
}
}`

Read Dead Redemption 2
Five Finger Fillet
AutoHotKey script
(change the keys array every round).

Edit: Just realized hashtags work!
#RDR2
#AutoHotKey

You are viewing a single thread.
View all comments
2 points

Not familiar with RDR2, but I’m into ahk, and you said that you change the keys every round. Would it be helpful to have a prompt ask you what your 5 keys have to be? That way you wouldn’t have to edit and rerun the program. Just control a again and it would open a new window asking what your keys will be.

permalink
report
reply
2 points

@derekabutton Definitely! I tested it out, but couldn’t get it to work in the first try, so took the lazy route and just hardcoded the sequence in.

permalink
report
parent
reply
2 points

A wise man once told me that technology isn’t about making simple things complicated. It’s about making complicated things simple.

The code for the prompt would probably be twice the size of the rest, and would take quite a bit more time than it would save. Sounds like you had the right idea in leaving it out. I can never keep myself to those obvious limits and it’s always such a waste automating for hours to save seconds lol

permalink
report
parent
reply

Gaming

!gaming@lemmy.ml

Create post

Sub for any gaming related content!

Rules:

  • 1: No spam or advertising. This basically means no linking to your own content on blogs, YouTube, Twitch, etc.
  • 2: No bigotry or gatekeeping. This should be obvious, but neither of those things will be tolerated. This goes for linked content too; if the site has some heavy “anti-woke” energy, you probably shouldn’t be posting it here.
  • 3: No untagged game spoilers. If the game was recently released or not released at all yet, use the Spoiler tag (the little ⚠️ button) in the body text, and avoid typing spoilers in the title. It should also be avoided to openly talk about major story spoilers, even in old games.

Community stats

  • 2K

    Monthly active users

  • 1.3K

    Posts

  • 15K

    Comments