combining 3 key to 1

Ask gaming related questions
sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

combining 3 key to 1

Post by sdo » 07 Jun 2023, 15:42

i wanna combine Rshift delete and r to my xbutton 1 idk how to do it pls help

ntepa
Posts: 406
Joined: 19 Oct 2022, 20:52

Re: combining 3 key to 1

Post by ntepa » 07 Jun 2023, 16:21

Code: Select all

#HotIf GetKeyState("RShift", "P")
    Delete & r::Send "{XButton1}"
#HotIf

sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

Re: combining 3 key to 1

Post by sdo » 08 Jun 2023, 12:33

ntepa wrote:
07 Jun 2023, 16:21

Code: Select all

#HotIf GetKeyState("RShift", "P")
    Delete & r::Send "{XButton1}"
#HotIf
sry but it doesnt work

ntepa
Posts: 406
Joined: 19 Oct 2022, 20:52

Re: combining 3 key to 1

Post by ntepa » 08 Jun 2023, 14:40

In my first script, if you press RShift, Delete, and r at the same time, it sends XButton1.
Maybe you meant the other way:

Code: Select all

XButton1::Send "{RShift Down}{Delete}{RShift Up}r"

sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

Re: combining 3 key to 1

Post by sdo » 08 Jun 2023, 15:15

so i basically wanna animation cancel in stardew valley and that code isnt working too sry it was my fault that i didnt tell you this im dumb sry man an apriciate your help

sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

Re: combining 3 key to 1

Post by sdo » 08 Jun 2023, 15:15

ntepa wrote:
08 Jun 2023, 14:40
In my first script, if you press RShift, Delete, and r at the same time, it sends XButton1.
Maybe you meant the other way:

Code: Select all

XButton1::Send "{RShift Down}{Delete}{RShift Up}r"
so i basically wanna animation cancel in stardew valley and that code isnt working too sry it was my fault that i didnt tell you this im dumb sry man an apriciate your help

ntepa
Posts: 406
Joined: 19 Oct 2022, 20:52

Re: combining 3 key to 1

Post by ntepa » 08 Jun 2023, 16:21

Try this:

Code: Select all

XButton1::{
    SetKeyDelay 0, 10
    SendEvent "{RShift Down}{Delete}{RShift Up}r"
}
Or:

Code: Select all

XButton1::{
    SetKeyDelay 0, 10, "Play"
    SendPlay "{RShift Down}{Delete}{RShift Up}r"
}

sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

Re: combining 3 key to 1

Post by sdo » 09 Jun 2023, 08:22

what if i wanna Rshift and delete to my xbutton1 and delete to my space

sdo
Posts: 7
Joined: 07 Jun 2023, 15:39

Re: combining 3 key to 1

Post by sdo » 09 Jun 2023, 08:24

the script im using rightnow is this

Code: Select all

#If WinActive("ahk_exe StardewModdingAPI.exe") || WinActive("ahk_exe Stardew Valley.exe")
XButton1::r
XButton2::RShift
Space::Delete
Delete::Space
#IfWinActive
and its kinda annoying but this works

[Mod edit: [code][/code] tags added. Please use them yourself going forward.]

Post Reply

Return to “Gaming”