I assume that this is the entire script, and that no other scripts are running at the same time. It would appear that the script works, but your game is not responding to it in the way that you expect. I do not have a way to fix or even test that, but the tips for games have helped others with their games.
https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
You may also want to search the forum here for your specific game, in case others have posted solutions.
You could try the following variation, in case the remap is a problem.
Code: Select all
RButton::Click, R
RButton & Space::
While GetKeyState("RButton", "P") & GetKeyState("Space", "P") {
Send {Space}
Sleep, 10
}
Return
Others here may have better ideas for you.