Hi, im new with SimConnect. If you're trying to set the Reference Altitude, you should use.
... (Declarations)
enum EVENTS
{
KEY_AP_ALT_VAR_DEC,
KEY_AP_ALT_VAR_INC
};
... (When setting up connection
my_simconnect.MapClientEventToSimEvent(EVENTS.KEY_AP_ALT_VAR_DEC, "AP_ALT_VAR_DEC");
my_simconnect.MapClientEventToSimEvent(EVENTS.KEY_AP_ALT_VAR_INC, "AP_ALT_VAR_INC");
... (In Button Click Event)
my_simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.KEY_AP_ALT_VAR_INC, 0, GROUP.ID_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
Im missing two things from the Altitude Alerter gauge: The CANCEL button and the light on it (marked with a red circle in the image). I don't know how to read light state / or generate the key event to that CANCEL button. Can't find it in Events IDs or Simulation Variables lists. Do you have any idea on how to do that?
Thx.