I would like to use two different keys (Numpad2 and RButton) to have the same function in games that don't have aim-toggle option. So far, one of he buttons works using this code:
Code: Select all
RButton::
KeyDown := !KeyDown
If KeyDown
SendInput {RButton down}
Else
SendInput {RButton up}
Return
Code: Select all
Numpad2::
KeyDown := !KeyDown
If KeyDown
SendInput {Numpad2 down}
Else
SendInput {Numpad2 up}
Return
How do I do it so that if Numpad2 activates the toggle, I can also disable it using RButton and vice versa?
For instance, if I use Numpad2 to aim-toggle, then I could disable it again using RButton. And if I use RButton to aim-toggle, then I could disable it again using Numpad2.
Example (4 scenarios):
1). Button A activates the Button A toggle, Button A deactivates the Button A toggle.
2). Button B activates the Button B toggle, Button B deactivates the Button B toggle.
3). Button A activates the Button A toggle, Button B deactivates the Button A toggle.
4). Button B activates the Button B toggle, Button A deactivates the Button A toggle.
So that Numpad2 can be a substitute for RButton and vice versa.
How do I achieve this?
Thanks