• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 'Transfer' a mouse click

Messages
206
Country
unitedkingdom
Here's a silly question, and I am fairly certain the answer is that it can't be done... Then again, if it can be done, the people who are likely to know about it read these forums...

Is there a way, using gauges or en external module (FSUIPC?) to tell FS that when you click in one specific place, it should act as if that click had been somewhere else, on a different panel? Example: I have a 3rd party ND in my panel and the EFIS controller for it is a popup window on the 2D panel. It would be neat if I could click on the actual main 2D panel on the switch for a particular feature (currently just a dummy) and have that click 'actuate' on the popup controller, without actually having to open it..?

Cheers,
Geoff
 
Yes, it probably can be done - intercept the mouse messages from Windows, determine if the 2D gauge has been clicked on.
If so, send a mouse click message with the coordinates on the EFIS gauge where you want the second click to occur.
If you have the source code for the dummy on the 2D panel, then you don't need to intercept the incoming mouse messages, but you will still need to programmatically determine where the mouse area on the EFIS is, so that you can send the second mouse click back to FS with the right coordinates. This last part is definitely non-trivial. :eek:

Doug
 
If both of these are XML gauges, then it is as simple as using the same L: variable in both gauges. A click on one will actuate the other.

Hope this helps,
 
@ Tom: The gauge I am trying to 'talk' to is written in C and is not mine - of course if it was in XML I would be able to send L:vars directly without the extra step.

@ Doug: Ok, not just a quick sunday afternoon task then! (At least not at my level). I think I'll leave it for now but interesting that it could work so thanks for the info.

Geoff
 
Back
Top