This alias is best bound to something like F9 (just uncomment the last line for that);
then you can either call the "normal" F12 (which just does
screenshot) or you call
MPscreenshot and it will hide all it can from the screen,
take the screenshot and restore your view to what it was before.
This is an alias which I like to use especially when preparing screenshots for quadropolis :-)
EDIT: adapted to auto-toggle from editmode to regular view (so materials look right, no grid, ...) and will toggle back to editing after having made the screenshot.
It also toggles the gamespeed to 10 - so you don't need to have any geometry to stand on, where you want to make the shot - due to the slow gamespeed you will only drop a fractional amount of a cube ;-)