Yeah, way I am doing things right now, am making an Elite Dangerous profile. Already using Bind ED to read the keybinds, but the command that I created that started to cause this OP to be made...
Wrote a command that looks at when I press the boost button. If I press the boost button, it would normally boost.
However, if the cargo scoop or landing gear is out, boost does nothing, and just as a convenience thing, and because pirates tend to jump in right as you are scooping cargo, put in a check though EDDI for cargo scoop state, if extended, retract and hit boost again.
In my testing works awesome, however, am trying to see if we can get this variable keypress to read the binds and have it look for whatever key the user has assigned.
This is the first command that I needed this kind of function, have been trying to make profile as painless of an install as possible, this is only one that requires the user to set their own key (so far)
I have already created a completely separate command that uses C# and such that downloads a CSV google sheet that adds in functionality so you get alerts on entering systems that have things, can target/type system names or ask it where a thing is and even give Lat/long (and can even open it into a compass program that leads you to the surface) and it is using a variable for the "when I say" portion, and does the reset on startup, etc, but just cant do that with keys presses yet :p