June 18, 201312 yr I've got SimConnect up and running, and can pull in data (Altitude, Indicated Altitude, etc.) and I can send events back to the simulator to unpause the simulation - so I know the connection is up and working and my basic method of sending events seems to be correct, but for the life of me I can't adjust the altimeter settings. The SEND_UNPAUSE works fine, but the INC_ALTIMETER has no effect. I've tried it with both Transmits and with each one separately with the same results. Thanks in advance for any help. Here is the code I'm using (C#): ... (Declarations) enum EVENTS { INC_ALTIMETER, SEND_UNPAUSE }; enum GROUPID { FLAG = 2000000000, }; ... (When setting up connection) simconnect.MapClientEventToSimEvent(EVENTS.INC_ALTIMETER, "KOHLSMAN_INC"); simconnect.MapClientEventToSimEvent(EVENTS.SEND_UNPAUSE, "PAUSE_OFF"); ... (In Button Click Event) simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.SEND_UNPAUSE, (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY); simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.INC_ALTIMETER, (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY); ...
July 16, 201312 yr 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.
Create an account or sign in to comment