Specify a screenshot directory in script

Asked by Khalid AlAjaji on 2016-08-24

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:
2016-08-30
Last query:
2016-08-30
Last reply:
2016-08-30
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");

Khalid AlAjaji (kajaji) said : #2

Thanks gzotti, that solved my question.

Khalid AlAjaji (kajaji) said : #3

Thanks Georg,

This also worked:

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