My joystick/gamepad has the standard 10 buttons plus the X and Y axis buttons. The script below works, but not the way I want it:
Right:: GetKeyState, state, JoyX If state > 75 ;JoyX is pressed to right SendInput testmessage
What this script will do is print "testmessage" when I press the right arrow key on my keyboard while JoyX is > 75. What I want is that, when JoyX is > 75, it will SendInput "testmessage" without having to press the right arrow key on my keyboard.
I tried using JoyX as hotkey, or X100 Y050, but I get an error message: the current hotkey JoyX will not be active bec it is not in the keyboard layout.