Yes that was pretty much what I was using guensili.
However, what I was doing wrong was changing the FSUIPC4.INI file and then doing a reload in FSX of the Flight. This is
apparently not enough and one has to either reload FSX altogether or change to another aircraft and then back again to
the aircraft being worked on. Otherwise the new entries into the INI file are not loaded.
While the TOGGLE command works with a one way switch I prefer to use the SET command because when I press down or up on my CH Throttle Quadrant two way button I know without looking at the switches what the action is. With a one way switch this is not possible and its easy to forget which way it is set at any particular time.
For the benefit of those who are thinking about doing the setup, here is a description of what I did for the 4 Carb Air switches in the B377.
The macro file 1B377.MCRO that I created has in it:
[MACROS]
1=L:CarbAir1Switch=SET
2=L:CarbAir2Switch=SET
3=L:CarbAir3Switch=SET
4=L:CarbAir4Switch=SET
In my FSUIPC.INI file there is an entry that says :
[MacroFiles]
1=1B377
2=1P47
(Note that the 1 in the 1B377 is arbitrary and just puts it at the top of the list.)
The listing above shows that my macro file is numero uno (No 1).
Now I do the entry into FSUIPC4 with my B377 loaded up in FSX and click on the buttons tab then click on the Profile option and then push down my CH Throttle button No 1 and then select "1B377:L:CarbAirSwitch Set" in the control window. (Don't forget to "reload" your buttons if you change your macro file !)
When I open my FSUIPC4.INI file it has the following entry (as well as lots of others we are not concerned with)
The CM1, that is the 1 in this statement says its using macro No 1 as noted above for the B377.
[buttons.B377]
0=P0,1,CM1:1,0
I now add to the list the following entries. The numbers 2,3,4 refer to the statement numbers in the macro file above.
1=P0,1,CM1:2,0
2=P0,1,CM1:3,0
3=P0,1,CM1:4,0
I can now go back and do a similar procedure for an up press on button No 1 on my CH Throttle
Then go back to the INI file and add the remaining 5,6 and 7 entries below. Everything should be in numeric sequence.
4=P0,0,CM1:1,1
5=P0,0,CM1:2,1
6=P0,0,CM1:3,1
7=P0,0,CM1:4,1
So my final entry in the INI file looks like this:(the 0 and 1 at the end of each statement is the parameter to make the switches
go down and up)
[buttons.B377]
0=P0,1,CM1:1,0
1=P0,1,CM1:2,0
2=P0,1,CM1:3,0
3=P0,1,CM1:4,0
4=P0,0,CM1:1,1
5=P0,0,CM1:2,1
6=P0,0,CM1:3,1
7=P0,0,CM1:4,1
Cheers WOZ