• 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.

Generating key codes from within XML

Messages
162
Country
italy
Hi all,
may be is a well answered question, but i did not find anything about.
I need to generate a key codeafter a click, something like this
Code:
<Mouse>
     <Visible>(L:WE_EMERGENCY_RAT, bool) ! </Visible>
     <Tooltip>Ram Air Turbine extension</Tooltip>
    <Cursor Type="Hand"/>
	<Click>	
		generate keycode  "shift+Q"
	</Click>
</Mouse>

any hint ?
thanks a lot
/mario
 
Last edited:
As far as I know, that is not possible, unfortunately.
 
As far as I know, that is not possible, unfortunately.

thanks for the prompt answer, i supposed too.
BTW:
reading you are a C gauge programmer, me too even if is a while that i stopped to code in C/C++.
May be it is possible make a .gau (or dll) that makes the trick ? I used great Doug Dawson .gau bridges to XML
and i found them very useful.
Do you know if there is some tool that helps to make such gauges without be forced to fight with VC compiler
that i hated very much on the past ?
I'm an old C/C++ programmers but on Linux world rather than M$ one.
/mario
 
Last edited:
Are you sure it's actually key codes you want to generate and not events? If you're trying to trigger FS functions with them then your code will not work if the user has remapped the default key bindings. You can instead send the equivalent events to FS from XML.

Si
 
Are you sure it's actually key codes you want to generate and not events? If you're trying to trigger FS functions with them then your code will not work if the user has remapped the default key bindings. You can instead send the equivalent events to FS from XML.

Si
yes i'm sure, the event i need to generate is EXTEND CONCORDE NOSE FULLY which is not on event id's list for those that can be generated from within XML gauges.
cheers
/mario
 
Everything relating to the old "Concorde" system was depecrated in FS9, and is completely absent from FSX...

...so I have to ask, what is the point of the effort at this juncture?
 
Everything relating to the old "Concorde" system was depecrated in FS9, and is completely absent from FSX...

...so I have to ask, what is the point of the effort at this juncture?
because we have linked an animation to this event and we should manage it from within xml, but actually we changed mind using "water rudder" that can be intercepted and managed with xml.
cheers
/mario
 
because we have linked an animation to this event and we should manage it from within xml, but actually we changed mind using "water rudder" that can be intercepted and managed with xml.
cheers
/mario

Now that's the part I don't understand. With FS9 and FSX we have the means to define our own, totally custom animations, so there's really little point to limiting ourselves to one of the "default animations." :confused:
 
Now that's the part I don't understand. With FS9 and FSX we have the means to define our own, totally custom animations, so there's really little point to limiting ourselves to one of the "default animations." :confused:

may be i did not explain my self clearly (apologyze for my bad english), is not the animation the key point, but the trigger, in this case we have to link an our customized animation (RAT extension) to an event that can be triggered via xml after a click on a bitmapped xml gauge.
The (&gt:K:some event) way is limited to recognized events, having used almost all what is available few remain, "water rudder" and infamous concorde ones.
The trick should be to link the animation to a keycode but unfortunately xml does not permit to generate keycodes, that returns to the initial question on the thread
cheers
/mario
 
That was precisely my point! The "trigger" can be anything you care to create yourself!

(L:MyCustomTrigger,bool) 100 *

will work precisely the same way as if you used

(A:WATER RUDDER HANDLE POSITION,percent)
 
Back
Top