So I'm trying to make a controls remapping tool for a game that doesn't have that feature. The game uses left, right, and space for moving left, right and jumping.
However I want to share this with other people in our community, so I want it to be usable without working with the code.
The best way that works perfectly is deciding on the keys beforehand, and hard-coding them into my program. This way they behave like you would expect, you hold down a key, and the character moves smoothly, without pauses. I'm talking about this way:
Code: Select all
a::left
d::right
w::space
Code: Select all
Gui Controls: New,, Controls
Gui Controls: Show, w300 h183
Gui Controls: Add, Text, x10 y13 w50 Right, Left
Gui Controls: Add, Hotkey, x70 y10 w150 vLeftKey, %LeftKey%
Gui Controls: Add, Text, x10 y43 w50 Right, Right
Gui Controls: Add, Hotkey, x70 y40 w150 vRightKey, %RightKey%
Gui Controls: Add, Text, x10 y73 w50 Right, Jump
Gui Controls: Add, Hotkey, x70 y70 w150 vJumpKey, %JumpKey%
Gui Controls: Add, Button, x225 y143 w70 h30 gControlsGuiClose, Apply
Return
ControlsGuiClose:
Gui Controls: Submit, NoHide
Hotkey, %LeftKey%, LeftKey
Hotkey, %RightKey%, RightKey
Hotkey, %JumpKey%, JumpKey
Return
LeftKey:
SendInput {Left}
Return
RightKey:
SendInput {Right}
Return
LeftKey:
SendInput {Space}
Return
Anyway thanks for your time reading this, and I appreciate any help I get.