connomar
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by connomar
-
-
Hi Paul,
After my query the other day about sending key presses to FSX, my code is working perfectly, BUT I am using both simConnect and FSUIPC Client. This seems a bit over the top, since the only thing I want to do in simconnect now is move the aircraft to a give latitude and longitude.
FsLatLonPoint fsLatLonPoint = new FsLatLonPoint(lat,lon);
FsAltitude fsAltitude = new FsAltitude(0);
//Send Structure to simconnect to position aicraft
//simconnect.SetDataOnSimObject(DEFINITIONS.Struct1, 0, SIMCONNECT_DATA_SET_FLAG.DEFAULT, s);
FSUIPCConnection.MoveAircraft(fsLatLonPoint, true, fsAltitude, 0, 0, 0, 0, true);As you can see above, I commented out the simconnect instruction and replaced with the FSUIPCConnection instruction. Whilst it works, FSX then Loads Terrain, ATC etc after each move. Any idea why and how I can stop this?
Many thanks
Martin
-
Thanks so much Paul, the flash would be perfectly acceptable for what I am doing. Yup, that works, thanks for your help.
Martin
-
Thanks so much Paul, the flash would be perfectly acceptable for what I am doing. I will see if I can make that work.
Martin
P.S. It isn't happy with Keys.M It seems to be expecting an FsControl type. This seems such a quick and easy solution too.
-
This is my first post on this forum, so excuse me if I've got anything wrong.
The question is:Is it possible, from my own code (c#) to send a keypress (m) to FSUIPC which another program, Airport Design Editor will trap as if it came from FSX. All without losing focus from my program?
Not realizing that ADE uses FSUIPC instead of simconnect, I coded in simconnect. ADE must somehow receive key presses 'm', 'o' and '.' from FSX, but FSX must have focus when those letters are pressed.
Airport Design Editor has a feature which allows one to press 'm' whilst in FSX, triggering a marker to be placed at the exact location of the aircraft on ADE.
The purpose of my program is to:
- take a list of coordinates from Google Earth, via KML, and send them to FSX in order to position the aircraft position by position.
- send key 'm' to FSX so that ADE thinks I have pressed it whilst FSX has focus, when in fact my program still has focus.
If, for instance, I have 40 sets of coordinates, I can single step through them on my program, and markers will appear in ADE, so I can accurately draw to those markers.
I hope that makes sense.
Regards
Martin
MoveAircraft causing reload
in FSUIPC Client DLL for .NET
Posted
Thanks so much Paul, that's a great help.