Page 1 of 1

mapping joystick not working

Posted: 14 Jun 2020, 09:09
by jibtga
I downloaded JoystickTest.ahk and I test my controller. it has 10 buttons, but when I try to map a button by example :

Joy1::
run notepad
end

not working, any idea?

Re: mapping joystick not working

Posted: 24 Sep 2020, 09:10
by ahk1
try 1joy1. The first 1 in 1joy1 is for the controller nr. 1 - autohotkey detects the controller and gives them an number. You use that number in front of the controller button names(ex: joy1) and get 1joy1.
so 1joy1 is controller nr 1 and button joy1. 1joy2 is controller nr 1 and button joy2

Re: mapping joystick not working

Posted: 24 Sep 2020, 18:49
by A_AhkUser
Also "end" should be replaced by return.

A_AhkUser