OK, so that was a little bit helpful - thank you - but I am still not there. All I need is a list of the Stellarium script codes and their syntax. I did learn comments using the pound sign are apparently not supported. Why the reference I used put them there is rather beyond me. I renamed the script to screenshot
_script.ssc and stripped it of everything but the actual commands. When I run it, Stellarium complains
core.setFlagHideGui[undefined] is not a function
I am not sure if that means the target (true) is undefined because
core.setFlagHideGu() is not a recognized system call or because "true" is not a recognized value for that function. If I read the preprocessor correctly, apparently it isn't
I looked up the Stelmain AP, and it looked nothing like these calls, unless I am missing something.The sentax and some of the functiond are not clear to me, either. For one thing, many of them call for "const Qstring &". I am not familiar with that directive.
In the AI generated script I am not entirely sure what
core.setFlagHideGui() is supposed to do. In the API it says a similar function merely hides the toolbars.
When I removed all the lines except the
core.screenshot("/RAID/Server-Main/Flat Earth/Stellarium Screen Shots/Video/screenshot.png")
the preprocessor no longer complained (I don't think) and running the sctipt produced no errors inside Stellarium, but in the calling shell it reports
INFO Saving screenshot in file: "/RAID/Server-Main/Flat Earth/Stellarium Screen Shots/Video/screenshot.png001.png"
WARNING failed to write screenshot to
: "/RAID/Server-Main/Flat Earth/Stellarium Screen Shots/Video/screenshot.png001.png"
While the suffix puzzles me a bit, it says nothing about why it did not write the screenshot.