use more sophisticated screenshot binding from $FG_ROOT/keyboard.xml
This commit is contained in:
parent
e603302d8d
commit
4be84e1609
1 changed files with 9 additions and 1 deletions
|
@ -37,7 +37,15 @@
|
|||
<item>
|
||||
<label>Snapshot</label>
|
||||
<binding>
|
||||
<command>screen-capture</command>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var success = fgcommand("screen-capture");
|
||||
var path = getprop("/sim/paths/screenshot-last");
|
||||
if (success)
|
||||
gui.popupTip("Screenshot written to '" ~ path ~ "'");
|
||||
else
|
||||
gui.popupTip("Error writing screenshot '" ~ path ~ "'");
|
||||
</script>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
|
Loading…
Reference in a new issue