Is this script correct?

Ask gaming related questions (AHK v1.1 and older)
bbg
Posts: 2
Joined: 23 Apr 2021, 11:12

Is this script correct?

23 Apr 2021, 11:25

I would like to reassign the animation cancelling keys in Stardew Valley, so that I can perform them with my left hand. I would like for this to only apply to the one game.

They are currently: [Rshift] [del] [r]

Someone has suggested this script, and I would like to know if it is correct as I've not yet found information for the commands in the first line, nor the symbols surrounding "Stardew Valley" (and I'd like to know what the "i)^" and "$" mean, if possible, so that I'll know how/when to use them in the future):

Code: Select all

SetTitleMatchMode, RegEx
#IfWinActive, i)^Stardew Valley$
LCtrl::RShift
XButton2::r
Space::Del
[Mod edit: [code][/code] tags added.]

Thank you so much for your help.
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: Is this script correct?

23 Apr 2021, 12:13

See: RegEx

Did the script work?
bbg
Posts: 2
Joined: 23 Apr 2021, 11:12

Re: Is this script correct?

23 Apr 2021, 12:20

I have not tried it.

I have only learned about scripts this morning, hence my desire to ask someone that knows what they are doing.

Alternatively, I could continue self-study and come up with it on my own. I'm almost sorry I asked.
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: Is this script correct?

23 Apr 2021, 12:24

No need to regret! I do suggest that you run the script, so that you can determine whether it works for you. You may be able to simplify it a bit.

Code: Select all

SetTitleMatchMode, 2
#IfWinActive Stardew Valley
LCtrl::RShift
XButton2::r
Space::Del
#IfWinActive

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 50 guests