Code: Select all
y::
Send, {u down}{j down}{j up}{u up}
return
Is there a way to get the U and J input together on the very first frame after I press Y?
Code: Select all
y::
Send, {u down}{j down}{j up}{u up}
return
I'm sorry for not clarifying. The game I mentioned is locked at 60 frames per second which means it updates information on the screen at every ~16ms and I play it using only the keyboard. The game also reads and processes inputs from the keyboard on a per frame basis. For example, if I press the button U the game will perform an action that will last for 12 frames i.e. ~200ms. During the time this action is being performed the game will ignore any additional inputs until the action is completed.
eexe wrote: ↑15 Jul 2022, 08:47I'm sorry for not clarifying. The game I mentioned is locked at 60 frames per second which means it updates information on the screen at every ~16ms and I play it using only the keyboard. The game also reads and processes inputs from the keyboard on a per frame basis. For example, if I press the button U the game will perform an action that will last for 12 frames i.e. ~200ms. During the time this action is being performed the game will ignore any additional inputs until the action is completed.
U performs action x, J performs action y and U+J together perform action z. But to perform action z the game needs you to press U+J on the same frame i.e. within a window of ~17ms. If I press U and miss the frame ( a ~16ms window) to press J and instead press J on the very next frame the game performs action x and ignores the U+J input until action x is completed.
So basically, I need the delay between {u down} and {j down} to be at least less than 16ms so that the game recognizes the U+J action. In what I have currently the delay is high enough (more than 16ms but less than 33ms) that the game reads the U input on one frame and U+J input on the next frame and hence performs the U key action ignoring the U+J action.
Code: Select all
y::
Send, {u down}{j down}
sleep 10
{j up}{u up}
return
Code: Select all
y::
Send, {u down}
sleep 10
{j down}
sleep 10
{j up}{u up}
return
Code: Select all
y::
Send, {u down}{j down}
return
y up::
Send, {u up}{j up}
return