- Messages
- 6
- Country

I am trying to wire up a hotkey for a function in the add-on that I am developing.
Connecting to SimConnect and FSX is no problem. When I assign the hotkey, I don't get any errors back, but when I press the hotkey, no event fires.
Here is a code snippet:
simconnect.AddClientEventToNotificationGroup( INPUT_GROUP.INPUT_1, EVENTS.SUB_MENU2, false );
simconnect.MapClientEventToSimEvent( EVENTS.SUB_MENU2, "MY.Menu" );
simconnect.MapInputEventToClientEvent( INPUT_GROUP.INPUT_1, "ctrl+shift+A", EVENTS.SUB_MENU2, 12, EVENTS.SUB_MENU2, 0, false );
simconnect.SetInputGroupPriority( INPUT_GROUP.INPUT_1, SimConnect.SIMCONNECT_GROUP_PRIORITY_HIGHEST );
simconnect.SetInputGroupState( INPUT_GROUP.INPUT_1, (uint) SIMCONNECT_STATE.ON );
Can anyone offer a suggestion?
thanx
Tom
Connecting to SimConnect and FSX is no problem. When I assign the hotkey, I don't get any errors back, but when I press the hotkey, no event fires.
Here is a code snippet:
simconnect.AddClientEventToNotificationGroup( INPUT_GROUP.INPUT_1, EVENTS.SUB_MENU2, false );
simconnect.MapClientEventToSimEvent( EVENTS.SUB_MENU2, "MY.Menu" );
simconnect.MapInputEventToClientEvent( INPUT_GROUP.INPUT_1, "ctrl+shift+A", EVENTS.SUB_MENU2, 12, EVENTS.SUB_MENU2, 0, false );
simconnect.SetInputGroupPriority( INPUT_GROUP.INPUT_1, SimConnect.SIMCONNECT_GROUP_PRIORITY_HIGHEST );
simconnect.SetInputGroupState( INPUT_GROUP.INPUT_1, (uint) SIMCONNECT_STATE.ON );
Can anyone offer a suggestion?

thanx
Tom