I had a had time figuring out how to set the transponder code, since it is hex instead of decimal. Thought I would share my solution so other can find it easier.
Call up that macro with the decimal code you want to set like so: @XPDRSet(1200) and that is it.
I cannot take full credit for this, I found the idea elsewhere here on FSDeveloper a while ago, I just put it all together.
Code:
<Macro id="XPDR Set" Name="XPDRSet">
<MacroValue>
@1 s0 10 % l0 10 /
int 10 % 16 * + l0 100 /
int 10 % 256 * + l0 1000 /
int 4096 * + (>K:XPNDR_SET)
</MacroValue>
</Macro>
Call up that macro with the decimal code you want to set like so: @XPDRSet(1200) and that is it.
I cannot take full credit for this, I found the idea elsewhere here on FSDeveloper a while ago, I just put it all together.

