Hello @ll,
trying to use SimConnect_CaptureImage (managed code) to save screenshots from various view windows. The method doesn't work as expected though.
Example:
simconnect.CaptureImage("FlirShot", "C:\\Users\\lsidevel\\Pictures\\Prepar3D v4 Files\\FLIR", 2, this.viewName, false);
creates this file:
C:\Users\lsidevel\Pictures\Prepar3D v4 Files\FLIR.jpg
Expected result as per the Learning Center was
C:\Users\lsidevel\Pictures\Prepar3D v4 Files\FLIR\FlirShot.jpg
but I found no combination of parameters to achieve it without additional awkward work arounds.
Looks like the method is ignoring the szFileName parameter and builds the result from szFilePath alone.
Best regards
Oliver Binder
Lorby-SI
[RESOLVED] Bug in simconnect.CaptureImage ?
- Rob McCarthy
- Lockheed Martin
- Posts: 3703
- Joined: Wed Aug 24, 2011 1:37 pm
Re: Bug in simconnect.CaptureImage ?
Hi Oliver,
Thanks for the report. We'll investigate this on our end and get back to you.
Regards,
Rob McCarthy
Thanks for the report. We'll investigate this on our end and get back to you.
Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
Prepar3D® Core Lead
-
- Lockheed Martin
- Posts: 361
- Joined: Fri Mar 17, 2017 3:58 pm
Re: Bug in simconnect.CaptureImage ?
Hey Oliver,
We'll have a fix for this in the next release.
-Brad
We'll have a fix for this in the next release.
-Brad
Re: Bug in simconnect.CaptureImage ?
Hello @ll,
great, thank you!
Best regards
Oliver Binder
Lorby-SI
great, thank you!
Best regards
Oliver Binder
Lorby-SI