Ok, thanks! I guess I wasn't thinking that the plane would initiate in the configuration of the panel, but I'd like to be able to synch the simulation to the physical panel with one button press instead of 40.
One reason for wanting to do this is that I've designed my FSX instrument panel to not show the positions of the physical switches, leaving more room for the gauges to be full size. For example, my physical panel has a fuel selector knob for OFF, LEFT, BOTH, RIGHT, but I don't have that knob echoed on the FSX panel. The position of the physical switch tells me the state of the fuel selector, just like in the real plane I'm mimicking. Another reason is that I run multiple instrument approaches, one after another with different flight files, so there isn't one single configuration for the controls, or the settings when the files were created, hence it would be nice to make the sim match panel quickly, then adjust as appropriate for the flight condition.
I guess I thought that when FSUIPC see's a steady state switch change (like a toggle or other switch that remains active), as long as the "control to repeat while held" box is not checked, FSUIPC sent a single command to FSX. I assumed, (and I know what they say about that..), that FSUIPC knows (or could know) the state of every physical switch at all times, but maybe that's not the case? Maybe it can only know the state of a switch when it changes? I can see where that would be a challenge. If FSUIPC can read all switches at anytime however, I was hoping there was a command to "read all defined switches and send the command associated with their current state".
Thank you for the feedback, though. I'll go see if I can come up with something in a Lua plugg-in.
Jim