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>
|
<item>
|
||||||
<label>Snapshot</label>
|
<label>Snapshot</label>
|
||||||
<binding>
|
<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>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue