Trying to read XBox One / Elite pads with AutoHotkey? READ THIS BEFORE POSTING

Ask gaming related questions
User avatar
evilC
Posts: 4739
Joined: 27 Feb 2014, 12:30

Trying to read XBox One / Elite pads with AutoHotkey? READ THIS BEFORE POSTING

04 Feb 2019, 06:02

AutoHotkey's GetKeyState() command no longer works properly on Windows 10 (As of 1809 or thereabouts) with non-xbox360 XInput controllers.
It will work fine while the AHK script is the active application, but as soon as you switch into a game, AHK will no longer be able to read the stick.
The solution is to use the XInput library

To clarify:
NOT AFFECTED (GetKeyState works OK):
Xbox 360 (Wired or Wireless)

AFFECTED (GetKeyState does NOT work OK)
Xbox One
Xbox Elite
XAC (Accessibility controller)

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 21 guests