Xbox One Controller Bluetooth version (1708) mapping...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
4k3or3et
Posts: 35
Joined: 23 Jan 2019, 13:58

Xbox One Controller Bluetooth version (1708) mapping...

23 Jan 2019, 14:04

Hi guys

i recently bought a Xbox One Controller (modem 1708) which you can connect via Bluetooth to your Windows 10 PC. I was wondering if anyone managed to find out how to map buttons on that thing. I would like to use [A] button for example to emulate multimedia key 'play/pause'. Is that even possible? Thank you guys.
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Xbox One Controller Bluetooth version (1708) mapping...

23 Jan 2019, 14:24

Hi,

Should be definitely possible.
Check out the docs.
https://www.autohotkey.com/docs/misc/RemapJoystick.htm

Chess
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
4k3or3et
Posts: 35
Joined: 23 Jan 2019, 13:58

Re: Xbox One Controller Bluetooth version (1708) mapping...

23 Jan 2019, 15:33

Scr1pter wrote:
23 Jan 2019, 14:24
Hi,

Should be definitely possible.
Check out the docs.
https://www.autohotkey.com/docs/misc/RemapJoystick.htm

Chess
Tried this method. It does not work...


safetycar wrote: Give this a try to see if it's detecting any buttons:
https://www.autohotkey.com/docs/scripts/JoystickTest.htm
Script recognizes if controller is on or off (connected via bluetooth or disconnecred) but it does not show any buttons or analogs while testing.

Any other clues guys?
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Xbox One Controller Bluetooth version (1708) mapping...

24 Jan 2019, 08:41

MS recently broke AHK's support for Xbox One controllers in a recent Win10 update.
When the script is not the active window, AHK will not be able to read the controller.
You need to use the XInput library to properly read them: https://autohotkey.com/board/topic/35848-xinput-xbox-360-controller-api/

What you want can actually be done without doing any coding - you can use UCR-AHK (See link in Signature) or UCR-C#

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Assquatch23, Google [Bot] and 338 guests