I looked into the newly documented Screenshot function. While I can make it work, the documentation seems incomplete or misleading. It states that the file will be written to "the temp:/ directory". This is the only place in the docs that this directory is mentioned, as far as I can tell. It doesn't state where it is located. I assumed this directory would be "SD:/temp/". However, when using the command with the following parameters
screenShotParams = {
filename: "SCREEN.jpg"
Width : vm.GetOutputResX()
Height : vm.GetOutputResY()
filetype: "JPEG"
Async: 1
}
the screenshot gets written to the root level of the SD card, not to any "temp" directory. Hence, it seems that the "temp" directory defaults to the root of the SD card. The only way I could make it write to a temp directory on the SD card was to change the parameters to the command to the following
screenShotParams = {
filename: "SD:/temp/SCREEN.jpg"
Width : vm.GetOutputResX()
Height : vm.GetOutputResY()
filetype: "JPEG"
Async: 1
}
Notice that I specify the location of the file as a full path. This indeed puts it into the temp direcory. The doc for the Screenshot function doesn't state that absolute path name can be used. But as long as the behavior doesn't change here, I'm good for now. But you may want to clarify the docs here a bit.
-JM