Recent content by roarkr

  1. R

    Open a (child) window in Prepar3D's mainwindow with simconnect

    Is there any simconnect command I can use to open/close a child window in Prepar3D's main window? I have a running airplane in Prepar3Dv4 that has some windows that I can undock. From my client software, I need to be able to open/close these windows. I have a list of all the Handles and...
  2. R

    simconnect.MapInputEventToClientEvent do not work

    Sometimes it helps to write down the problem to understand what is wrong. I had missed the simconnect.MapClientEventToSimEvent(EVENT_ID.J99, null); line in addition, I had a misprint ( EVENT_ID.J02, 1) in the simconnect.MapInputEventToClientEvent(INPUT_GROUPS.INPUT0, "joystick:0:button:2"...
  3. R

    simconnect.MapInputEventToClientEvent do not work

    I need some help as I have been stuck for hours. When I use : simconnect.MapInputEventToClientEvent(INPUT_GROUPS.INPUT0, "joystick:0:button:2", EVENT_ID.J02, 1, EVENT_ID.J99, 1, (bool)false); I get EXCEPTIONS code 1 and 3 If I rem out the same line, I do not get any EXCEPTIONS What is...
  4. R

    Gauge "soft" keys access

    I never said it was generating a sim event. As I can't detect any with FSUIPC's Mouse Macro or the suggested GAUGE_KEY_EVENT_HANDLER function, See my opening mesage. This bring back my first question in this thread , is it impossible? I believe now, that it is impossible.
  5. R

    Gauge "soft" keys access

    How can I know? I guess it is a C++ gauge
  6. R

    Gauge "soft" keys access

    It triggers an action locally in the gauge. The action gives another "child" screen in the gauge.
  7. R

    Gauge "soft" keys access

    To clarify a little more: With "soft" key I mean a clickable spot/symbol on the gauge screen. The gauge has several clickable spots/symbols. I know that that the "soft" key I am trying to find the ID for is something that is clickable and will trigger an action. I know that because when I...
  8. R

    Gauge "soft" keys access

    Thanks for reply. But, isn't using the GAUGE_KEY_EVENT_HANDLER function to detect eventIDs, the same as can be achieved with FSUIPC's Mouse Macro function? I have used it to try to detect the eventID in order to "click" them via C++ code. The Mouse Macro funtion in FSUIPC detected all...
  9. R

    Gauge "soft" keys access

    Hi, I am trying to access "soft" keys on a gauge for an user aircraft. The gauge has no Lvars for the "soft" keys. I can access the "soft" keys by hoovering over the "soft" key and make a left click on the mouse. This is the built in way of accessing these "soft" keys. I am about to make a...
  10. R

    How to read text message with SimConnect API

    Found out after some SDK reading: hr = SimConnect_SubscribeToSystemEvent(hSimConnect, EVENT_TEXT_WINDOW_CREATED, "TextEventCreated"); while (0 == quit) { // query a datablock, will arive in the callback proc int hr = SimConnect_CallDispatch(hSimConnect...
  11. R

    How to read text message with SimConnect API

    Hi, After been loaded into P3Dv4 some airplanes take some time to initialize internal data before they are ready for user/client inputs. The airplane is sending out a text message that is displayed in the main P3D window when ready. Is there a way to read this message by my dll using...
  12. R

    Reading and writing Lvar from C++

    I have my DLL working fine, but I want it to be active only when a specific airplane is loaded. If another airplane is selected/loaded, the DLL should be deactivated. I haven't found a good way of doing this yet. I know I could look for loaded airplane via SimConnect, and if not loaded...
  13. R

    Reading and writing Lvar from C++

    This is what I do for the Simconnect Variables I have, as some of the airplane's variables are done as Simconnect Variables. This was new for me. I thought the ID was hardcoded and therefore the same for all sessions. Thanks for letting me know this important fact. Then I will go over to use...
  14. R

    Reading and writing Lvar from C++

    I follow you on the last parts of your answer, but the "I make a single data definition using some obscure variable like IS USER SIM", I really do not understand. Could you try to explain this more in detail not only for me, but for others that are heading into DLL coding.
  15. R

    Reading and writing Lvar from C++

    I have more or less finished my DLL project and are doing some testing to improve the performance. I have a threadin my DLL that reads an airplane LVar values implemented as shown second code part below. It is , I believe, not a professional way of doing it , but it works. Is there a better...
Top