You can also just remove them if you don't want to use NoMousy.
Note that you'll need to update your paths for NoMousy (bolded below) as mine is specific to my computer. If you want to see what number AHK sees your joystick as (1, 2, 3, etc.) you can use this script to test. If you want to add it to only one, just eliminate the sections for 1Joy# (marked in red) or 2Joy# (marked in blue). The script adds these functions to two controllers (1Joy# and 2Joy#).
This is a script I made for CCS64 (Commodore 64 emulator), designed to be used with a 360/XB1 controller.