Okay, here is how I incorporated ControllerRemap GUI with Hyperspin.
In HyperHQ, under Startup program, choose your CtrlRemapGUI.exe file.
The parameter should read
-rmap "
Absolute Path\CRG_MyRemap.cfg"
The absolute path should be where your CRG_MyRemap.cfg file is, in your ctrlr folder in Mame. For example, my code reads
-rmap "D:\Arcade\Mame\mame 0162\ctrlr\CRG_MyRemap.cfg"
Use quotes if you have spaces in your path, as I do in mame 0162. I thoroughly recommend using absolute paths, since you know it will definitely point to the required file.
Some tips I learned along the way
READ the ControllerRemap guide from Dr.Venture, READ Stigzler's Guide, WATCH his video, and work slowly.
I originally tried to input all of the controls at once. I have four U360s, two Aimtraks, a UTrak and a TurboTwist. Its smarter to do one control set at a time, when using the Run Mame button in CRGUI. Another thing, when you transfer the inputs with aliases from the Mame.cfg to the CRG_MyRemap.cfg, I find if you select all of them, Transfer, be SURE to check the Refresh button on the Mame.cfg tab. Sometimes not all of the controls transfer over to the CRG_MyRemap tab. I think this is because if you have one highlighted in blue, it may or may not transfer. I adopted the practice of selecting everything by clicking on the top left blank square, checking the Transfer checkbox, clicking over to the CRG_MyRemap tab, then clicking back to Mame.cfg. Nothing should be highlighted, and you can then press TRANSFER
For the Aimtrak guns, you should have two aliases upon detection. One being the ATRAK Gun 1, another being the ATRAK Mouse 1. You will need both when setting the aliases for the guns in Mame.cfg tab.
I didnt realize this, and just used ATRAK Gun 1 for all gun settings, including the Lightgun X and Y, AD Stick X and Y (for positional gun games), Gun button 1 for the trigger, and Joycode Button for the side buttons. The problem is, if you dont have the correct settings and aliases, Mame will not see them and fill in your code with its defaults. This is where the phantom code came from, as I said above.
That being said, set your gun buttons (trigger and bomb buttons) using the ATRAK Gun 1 alias (or whatever number the gun is), and set the X and Y for the gun using the ATRAK Mouse alias. This should solve any problems you may have when running ControllerRemap.
After a week of running the code, and bothering the hell out of stigzler, I finally caught wind of how the program works, and I have to say, upon numerous reboots, not one ID has changed in Mame, and everything runs smoothly. If you want to confirm that your code has been written to the CRG_MyRemap, when you enter Mame, hit TAB, and you should see your controls there. Dont pay any mind to the numbers of your guns, trackballs or spinners. They change in Mame, but ControllerRemap stops that ---steaming pile of meadow muffin--- cold and ensures your periphreals work.
Thanks again Dr. Venture and Stigzler for solving the major Mame problem.