Hi, I added %s support for scanf in string.nas, which enables us to get names through multi-key command.. I also added a command :Pg<airport Id>[ <runway Id>] for placing your aircraft to given airport/runway.
Here is the example portion (sub-level) in a command that runs nasal function with a string argument. <key n="903"> <name>%s</name> <desc>some function with arg %s </desc> <binding> <command>nasal</command> <script>somefunction(arg[0])</script> </binding> </key> There are some restrictions/rules in use of %s in multikey command. - avoid using %s in a top-level key (first key). - use space (<key n="32"><name> </name>) separator if you need to add more keys after %s. This allows you to make a command that has more than one %s. - use 903 for a key number in either multikey.xml or per-aircraft command definition file Tat p.s. You want more multi-key commands? Let us know. ----- Tatsuhiro Nishioka ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel