I'm trying to write a script that disables or rebinds Numpad4 only while RMB Is being held down. Upon releasing RMB, Numpad4 should revert back to normal function.
The code I am trying is as follows:
Code: Select all
if WinActive("my_game.exe")
if GetKeyState("RButton", "P") {
Numpad4::LButton
}
return
Appreciate some assistance.