how to simulate a keypress ??
The code below is executed by way of a button anywhere up in the clouds.
- Code: Select all
<binding>
<command>nasal</command>
<script>
setprop("/sim/atc/freq-airport", (getprop("/sim/airport/closest-airport-id")));
fgcommand("dialog-show", props.Node.new({ "dialog-name" : "atc-freq-search" }));
</script>
<binding>
</button>
sets the property correct and opens the freq search form.
Now is there a way to simulate that the enter key was pressed to close the dialog to open the results dialog
or is there a way to open the results directly without showing the search dialog.???