XBox 360 Controller Mapper [AHK 1.1]

Post gaming related scripts
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

XBox 360 Controller Mapper [AHK 1.1]

28 Jun 2014, 09:36

Image
Changing options:
-Double Click on an item.

Features:
-Multiple profiles
-Alternate key bindings depending on a pressed button/axis
-Mouse movement with optional keypress
-Export/Import
-Drag/drop import
AHK Code
Last edited by maestrith on 26 Jul 2015, 20:51, edited 9 times in total.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

28 Jun 2014, 12:43

Reserved.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

20 Dec 2014, 16:40

Completely re-wrote the code. It is a lot easier to use and you can update the profile without having to stop it and then re-start it.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
joedf
Posts: 8951
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: XBox 360 Controller Mapper [AHK 1.1]

20 Dec 2014, 18:42

Ahh you must have seen that conversation about xInput ;)
Nice tool there! :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

20 Dec 2014, 18:43

joedf wrote:Ahh you must have seen that conversation about xInput ;)
Nice tool there! :)
Conversation? Nope, I missed it.

Thanks btw :)
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

20 Dec 2014, 23:13

Added:
-Import, Export, Drag/Drop Import, and Collapse/Expand All
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Jx7

Re: XBox 360 Controller Mapper [AHK 1.1]

17 Jan 2015, 10:30

Hi,

When I run this file I have an error :


Error at line 4.

Line Text: global settings
Error: This line does not contain a recognized action.

The program will exit
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

17 Jan 2015, 17:00

Jx7 wrote:Hi,

When I run this file I have an error :


Error at line 4.

Line Text: global settings
Error: This line does not contain a recognized action.

The program will exit
This script requires a recent version of AHK 1.1 which can be downloaded Here. If you still have an issue after installing this please let me know.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Guest

Re: XBox 360 Controller Mapper [AHK 1.1]

18 Jan 2015, 15:44

maestrith wrote:
Jx7 wrote:Hi,

When I run this file I have an error :


Error at line 4.

Line Text: global settings
Error: This line does not contain a recognized action.

The program will exit
This script requires a recent version of AHK 1.1 which can be downloaded Here. If you still have an issue after installing this please let me know.
It works, thank you.
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

18 Jan 2015, 15:46

No problem. I am going to have an update soon.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Jx7

Re: XBox 360 Controller Mapper [AHK 1.1]

18 Jan 2015, 15:58

maestrith wrote:No problem. I am going to have an update soon.
I spoke to quickly. The script can be launched but when I have to press a button of the pad, it doesn't detect anything.

Is this because I use a wireless Xbox 360 pad? Yet Windows recognize it like a Miscrosoft joystick.
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

18 Jan 2015, 18:13

Wireless pads should work just the same as wired ones. Let me see if I can upload my new version sometime in the next day or so. Try to make sure that the controller is on before you start the program
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: XBox 360 Controller Mapper [AHK 1.1]

19 Jan 2015, 05:24

I'll take a look. Thanks!
Everything is possible!
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

19 Jan 2015, 14:16

0.000.2
Added:
-Alternate Assignments
-Direct input support - Some games require this option.
-About/Available Assignments to show what button presses are available
-Held key for adding multiple key presses to an assignment
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

19 Jan 2015, 15:27

I created 3 basic profiles. They are not complete, but they are a pretty good start.
Guild Wars 2
Factorio
and Rimworld
Download them and then File/Import them into your script.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Taimon

Re: XBox 360 Controller Mapper [AHK 1.1]

29 Jan 2015, 12:48

Thanks for sharing the script!

I'm trying to get this to work with an Xbox One Controller, with not much success so far.
Can you give some hints at how it is supposed to work? Especially with regards to controller detection.
I'm familiar with the basic principles of programming. Haven't looked at much AHK Scripts yet, but I think I just need a good starting point and will find my way from there.
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

29 Jan 2015, 14:09

I have no idea as to how the new controllers interface with the PC. To be honest I didn't know that they had made it so that you could. If I had to guess they are still using a version of xinput which you can get the information from the class that is in this script to see if you can get information from it. Sorry I am not more help but I do not have one that I can test with. Hopefully you can get some use out of this script.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Taimon

Re: XBox 360 Controller Mapper [AHK 1.1]

30 Jan 2015, 08:20

Sorry, I should have been more clear when asking my question.
I wanted to know how your script interacts with the Xbox 360 controller. (Then I can try to figure out how to interact with the Xbox One controller.)

From what I saw it should be related to the loading of the xinput*.dll and then calling some functions there. Theoretically, this API should be no different for the Xbox One controller.

Like I said, don't worry about the Xbox One controller thing, I was just trying to understand your script.
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

30 Jan 2015, 08:58

Taimon wrote:Sorry, I should have been more clear when asking my question.
I wanted to know how your script interacts with the Xbox 360 controller. (Then I can try to figure out how to interact with the Xbox One controller.)

From what I saw it should be related to the loading of the xinput*.dll and then calling some functions there. Theoretically, this API should be no different for the Xbox One controller.

Like I said, don't worry about the Xbox One controller thing, I was just trying to understand your script.
ah, ok. let me know if there is anything specific you would like to know.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: XBox 360 Controller Mapper [AHK 1.1]

20 Feb 2015, 14:31

Image
0.001.1
Fixed: Reported by Masonjar13
-Cancelling a rename of a game was causing an issue
Changed:
-Collapse/Expand All to Collapse/Expand All Assignments: This only effected the key press assignments not all of the items in the treeview
Added:
-Pressing Delete when the games are focused will delete the currently selected game
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 31 guests