v2.0-a129 joystick/gamepad help

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

v2.0-a129 joystick/gamepad help

31 Mar 2021, 12:35

Hi, total noob again.
In the docs I noticed there's a “joystick test script”.
I tried it and it was successfully able to show me which buttons on my gamepad I was pressing in real-time. Cool.
But then I tried something simple like Joy1::a in my script and nothing happened.
In fact nothing related to the joystick/gamepad works at all. Totally dead.
In the docs it uses something simple like that as an example script.
Am I missing something?
Thanks.
N
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

03 Apr 2021, 23:53

Anyone?
This isn't a crappy April fools joke, I swear.
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 02:12

Similarly doesn't do anything.
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 05:34

What joystick number does the joystick test script show for your joystick?
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 06:05

The four face buttons for example,
show me 1, 2, 3, 4, which I assume means everything is in order.
None of them do anything in the script however.
Does anyone else have a gamepad they can test this with?
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 07:37

I have an Xbox controller. But you didn't answer my question. I didn't ask what it shows for the various buttons. I asked what joystick number it shows. Right after the joystick name, in parentheses. If it is showing #2 for example, than your script would need to be:

Code: Select all

2Joy1::a
or

Code: Select all

2Joy1::Send "a"
Either should work.

Explained in the documentation under the Joysticks section of the List of Keys page.
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 08:46

Oh, sorry. I thought you meant joystick button number.
The first line says:
Microsoft PC-joystick driver (#2):
But 2Joy1::a doesn't work either, with or without the “Send”.
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 09:29

If the joystick test script works, then this has to work.

You must have still had the joystick test script running, which would prevent this script from working because the test script is grabbing the button presses instead of this script. Make sure the joystick test script and any other scripts that use joystick hotkeys are closed, then run this script again.
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 11:48

Closed test script. Nothing.
Closed all other scripts. Nothing.
Tested in Notepad. Nothing
Tested in a game. Nothing.
Tested in admin/elevated mode. Nothing.
I've never had absolutely zero response from a script before.
Is it working for you?
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 12:23

OK, sorry about this. I see that I was using a122 and it worked fine but a129 does not (neither does a130). I should have checked that earlier. I'll post a bug report.
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: v2.0-a129 joystick/gamepad help

04 Apr 2021, 12:31

Reported here. Again, sorry for not checking the latest version earlier. I feel like Microsoft support asking you to reboot your computer and stuff like that first. :oops:
robinson
Posts: 189
Joined: 12 Sep 2019, 20:28

Re: v2.0-a129 joystick/gamepad help

05 Apr 2021, 00:59

Hey no worries!
I appreciate any response I can get.
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: v2.0-a129 joystick/gamepad help

06 Apr 2021, 03:58

1.1.33.06 - March 14, 2021
Fixed a bug introduced by v1.1.33.05 were certain hotkeys were ignored. This included joystick hotkeys and all hotkeys to which #MaxThreadsBuffer or the B option is applied.
Source: Changes & New Features | AutoHotkey
v2.0-a129-78d2aa15
...
Merged v1.1.33.05.
Source: AutoHotkey v2 alpha (UPDATES) - Page 5 - AutoHotkey Community
I forgot to merge v1 into v2.0-a130, but it'll be in v2.0-a131.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Descolada, Draken, Rohwedder, TAC109 and 56 guests