[RESOLVED] Bug in simconnect.CaptureImage ?

obinder
Posts: 144
Joined: Sun Jun 08, 2014 9:43 am

[RESOLVED] Bug in simconnect.CaptureImage ?

Postby obinder » Sat May 05, 2018 6:53 pm

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: 2878
Joined: Wed Aug 24, 2011 1:37 pm

Re: Bug in simconnect.CaptureImage ?

Postby Rob McCarthy » Mon May 07, 2018 2:45 pm

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: 352
Joined: Fri Mar 17, 2017 3:58 pm

Re: Bug in simconnect.CaptureImage ?

Postby Brad Shiver » Mon May 07, 2018 8:20 pm

Hey Oliver,

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

-Brad

obinder
Posts: 144
Joined: Sun Jun 08, 2014 9:43 am

Re: Bug in simconnect.CaptureImage ?

Postby obinder » Wed May 09, 2018 4:04 pm

Hello @ll,

great, thank you!

Best regards
Oliver Binder
Lorby-SI


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 10 guests