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
v2.0-a129 joystick/gamepad help
Re: v2.0-a129 joystick/gamepad help
Anyone?
This isn't a crappy April fools joke, I swear.
This isn't a crappy April fools joke, I swear.
Re: v2.0-a129 joystick/gamepad help
Try:
See Making a Joystick Button Send Keystrokes or Mouse Clicks for more information.
Code: Select all
Joy1::Send "a"
Re: v2.0-a129 joystick/gamepad help
Similarly doesn't do anything.
Re: v2.0-a129 joystick/gamepad help
What joystick number does the joystick test script show for your joystick?
Re: v2.0-a129 joystick/gamepad help
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?
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?
Re: v2.0-a129 joystick/gamepad help
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:
or
Either should work.
Explained in the documentation under the Joysticks section of the List of Keys page.
Code: Select all
2Joy1::a
Code: Select all
2Joy1::Send "a"
Explained in the documentation under the Joysticks section of the List of Keys page.
Re: v2.0-a129 joystick/gamepad help
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”.
The first line says:
Microsoft PC-joystick driver (#2):
But 2Joy1::a doesn't work either, with or without the “Send”.
Re: v2.0-a129 joystick/gamepad help
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.
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.
Re: v2.0-a129 joystick/gamepad help
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?
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?
Re: v2.0-a129 joystick/gamepad help
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.
Re: v2.0-a129 joystick/gamepad help
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.
Re: v2.0-a129 joystick/gamepad help
Hey no worries!
I appreciate any response I can get.
I appreciate any response I can get.
Re: v2.0-a129 joystick/gamepad help
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
I forgot to merge v1 into v2.0-a130, but it'll be in v2.0-a131.v2.0-a129-78d2aa15
...
Merged v1.1.33.05.
Source: AutoHotkey v2 alpha (UPDATES) - Page 5 - AutoHotkey Community
Re: v2.0-a129 joystick/gamepad help
Thank you.