Page 1 of 1
Command Line Reference
Posted: Mon Dec 22, 2014 10:29 am
by maxaero
Is there a command line reference for the PEClient?
I'm interesting in building a launcher that launches FSX/P3D using a .FLT/FXML file and also launches the PEClient and have it connect automatically.
Thanks for any assistance.
Dustin
Re: Command Line Reference
Posted: Mon Dec 22, 2014 10:59 am
by Keith Smith
There isn't a command line API. However, you can fire a simconnect event called "REDBIRD.PE_CONNECT" and that will cause it to connect using the last set of good credentials.
Re: Command Line Reference
Posted: Mon Dec 29, 2014 10:37 am
by maxaero
That will work.
Is there a disconnect event as well?
Any other events or properties?
Thanks!
Dustin
Re: Command Line Reference
Posted: Mon Jan 12, 2015 11:46 am
by Keith Smith
There isn't a disconnect event for FSX/P3D yet, (we haven't had a need for it). There is a PILOTEDGE.PTT_ON and PILOTEDGE.PTT_OFF you can trigger, though.
Re: Command Line Reference
Posted: Wed Jan 14, 2015 7:16 pm
by maxaero
Thanks Keith,
I tried using these three events this evening.
PILOTEDGE.PTT_ON worked, but it left the transmit button stuck on. Trying to clear this with the keyboard or yoke PTT did not work.
PILOTEDGE.PTT_OFF did not work. This was attempted just after using the PTT_ON event.
REDBIRD.PE_CONNECT did not work. FSX and PE Client were running.
I'm using the managed version of the SimConnect client in the FSX SP2 SDK.
Here's the code I'm using - any suggestions?
Code: Select all
try
{
simconnect.MapClientEventToSimEvent(REDBIRD.PE_CONNECT, "REDBIRD.PE_CONNECT");
simconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUPS.GROUP0, REDBIRD.PE_CONNECT, false);
simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, REDBIRD.PE_CONNECT, 0, NOTIFICATION_GROUPS.GROUP0, SIMCONNECT_EVENT_FLAG.DEFAULT);
}
catch (COMException ex)
{
MessageBox.Show(ex.Message);
}
Re: Command Line Reference
Posted: Thu Jan 15, 2015 9:01 pm
by Keith Smith
my mistake, the ptt off should be PILOTEDGE.PTT_RELEASE
Re: Command Line Reference
Posted: Fri Jan 16, 2015 3:40 pm
by maxaero
PILOTEDGE.PTT_RELEASE worked - thanks!
Alright - so, I'm still looking for a way to programmatically get the PE client to connect. Does the REDBIRD.PE_CONNECT event need some Redbird software installed to register the event?
Dustin