Recent content by roarkr

  1. 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.
  2. R

    Gauge "soft" keys access

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

    Gauge "soft" keys access

    It triggers an action locally in the gauge. The action gives another "child" screen in the gauge.
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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.
  12. 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...
  13. R

    Reading and writing Lvar from C++

    Got the comm thread working now by using the hcommThread = CreateThread(NULL, 1024, my_comm, NULL, 0, &ThreadID) The _beginthread in your link I didn't know about. Is there a preferred one when programming in the P3D environment or are they more or less the same?
  14. R

    Reading and writing Lvar from C++

    I have added the code for initiating a communication client and it sets up a connection to the communication server( my C++ app) After the initialization of the comm.client, P3D takes over. I guess I need to create separate threads for reading/setting lvar values and reading/sending on the...
  15. R

    Reading and writing Lvar from C++

    I know I can scroll with mouse, but more visible lines(lvars) would be better(at leaset for my purpose). The nicest would be a fixed font size and an increased/decreased number of lines when increasing/decreasing the window with mouse. A filtering function is the most important though.
Top