[RESOLVED] Bug in simconnect.CaptureImage ?

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Locked
obinder
Posts: 145
Joined: Sun Jun 08, 2014 9:43 am

[RESOLVED] Bug in simconnect.CaptureImage ?

Post by obinder »

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
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: Bug in simconnect.CaptureImage ?

Post by Rob McCarthy »

Hi Oliver,

Thanks for the report. We'll investigate this on our end and get back to you.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
Brad Shiver
Lockheed Martin
Posts: 361
Joined: Fri Mar 17, 2017 3:58 pm

Re: Bug in simconnect.CaptureImage ?

Post by Brad Shiver »

Hey Oliver,

We'll have a fix for this in the next release.

-Brad
obinder
Posts: 145
Joined: Sun Jun 08, 2014 9:43 am

Re: Bug in simconnect.CaptureImage ?

Post by obinder »

Hello @ll,

great, thank you!

Best regards
Oliver Binder
Lorby-SI
Locked