Hey mate,
No worries, glad you like the script!
I might have misread your request earlier - my apologies. For some reason I read it as you were looking for help on your script to sort out FA-Off mapping. Devil is in the detail
Reading back, that is a
really interesting idea though, and I am thinking how it might be done. Right now, with my script as you may have already figured out, you could do this but would need to do manually as such. It's how I generally use FA-Off, I hold back direction on the two way switch on the throttle under the hat switch near thumb for a couple of seconds as I do a full turn then release. Short bursts when in combat and the like. Works fairly well, but to automate it would take it to another level

Push it into the lock position forward to keep FA-Off enabled for extended periods.
I do have some code already that maps a key press to 100% throttle position (this is what is used for the Supercruise on Throttle function), so mapping a key press to an axis is possible, and could potentially be adapted for FA-Off at say 75% (or an adjustable level). This uses the AXMAP1 & LIST commands found around page 31-34 of the manual. This can set a zone, when it enters that zone a key can be pressed.
Gonna need to test this and play a bit I think & unfortunately I am going to be unavailable for a little while due to some eye surgery this week so may be a while till I can get to test it myself. Not sure how I may ultimately integrate it, but if you wanted to customise your script copy & play around yourself, something like this may work (
untested - just spit-ballin' an idea ofc):
KeyAxis(&Joystick, JOYX, 0, AXMAP1(LIST(0,25,75,100), FAOFFKeypress, FAOFFKeypress, FAOFFKeypress));
Would need something like that for each axis in question. Could probably exclude Roll/Throttle, and just have on Yaw/Pitch. Guess it depends how it plays, but don't think Roll changes much when FAOff is on.
The logic here is that it should set 3 zones, 25% either direction (left/right) and a 50% center zone. When you enter/exit each zone it should fire the FAOFFKeypress ie 'PULSE
+FlightAssist'. Move it left to the last 25%, FAOff is enabled, and would remain on till you release axis (hold is set in ED bindings file after all so will remain on). When you release axis and enter the middle 25-75 zone it presses it again to release the hold for FAOff. It should stay off while in this zone, but return to the 0-25 or 75-100 zones it will trigger again and hold FAOff again.
Assuming it works, if I was to include in a public release of the profile script, I would probably wrap that in a new user variable like 'AutoFAOFFMode' or 'CombatFAOFFMode':
if(AutoFAOFFMode ==
1){
Do the KeyAxis command above etc
}
if == 0, essentially ignore and just default to the manual option already implemented (Same sorta logic I used for the CruiseOnThrottle settings for users to chose their preference). I think it would probably go into the Core Settings section of the main script near where I have the CruiseOnThrottle command.
Like I said, just an idea at this stage, but might just work
I'll look into this further when I can. If viable (and ultimately practical to use) can look to include in future update.
If you do get a chance to play yourself, I would be most interested to know if it works and off course what the experience is like.
Cheers,
AD
Edit: Actually thinking about this some more, that may not work as expected due to the combination of the axes when changing direction on the ship.

If you had JoyX & JoyY both with a similar command it may get mixed up between actions; such as if you use a diagonal incorporating both axes - it might invert things or get out of alignment. Might still be able to be done, but may need to track the state of the FAOff as it moves between axes with some variables perhaps. If JoyX has FAOff, then do not enable/retrigger when JoyY is used or something like that. Hmmm .. will have to think this through some more I think or maybe I am over thinking this lol