Specify a screenshot directory in script

Asked by Khalid AlAjaji

I tried in windows system something like this
core.screenshot("test",false,dir="C:\Users\me\Desktop\Stellarium_shots");

and it didn't direct screen shots to the specified directory. I also tried paths other than desktop.

Is this the correct format ?

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
gzotti
Solved:
Last query:
Last reply:
Revision history for this message
Best gzotti (georg-zotti) said :
#1

The log file often tells you what's wrong...

core.screenshot("test",false,"C:/Users/me/Desktop/Stellarium_shots");

Revision history for this message
Khalid AlAjaji (kajaji) said :
#2

Thanks gzotti, that solved my question.

Revision history for this message
Khalid AlAjaji (kajaji) said :
#3

Thanks Georg,

This also worked:

core.screenshot("test",false,"C:\\Users\\me\\Desktop\\Stellarium_shots");