December 11, 200916 yr Hello,I want to make a software that it takes a screenshot in FSX when a button is clicked. I know that in FSX I can take a screenshot pressing "V" key. But can I automate this procedure within a program? I think that it was possible by sending a "CAPTURE_SCREENSHOT" event to FSX. But how can I send an event to FSX with SimConnect?Thank you!
December 18, 200916 yr Commercial Member I want to make a software that it takes a screenshot in FSX when a button is clicked. I know that in FSX I can take a screenshot pressing "V" key. But can I automate this procedure within a program? I think that it was possible by sending a "CAPTURE_SCREENSHOT" event to FSX. But how can I send an event to FSX with SimConnect?There are examples of sending Events via SimConnect in the SimConnect SDK. But an even easier way may be to simply Post a WM_COMMAND message to the "FS98MAIN" class window with the Event code as the WPARAM -- the event code numbers are defined in the events header file. KEY_CAPTURE_SCREENSHOT is 66733. This doesn't work with all KEY EVENTs but does with most and is worth a try.RegardsPete Win10: 22H2 19045.2728 CPU: 9900KS at 5.5GHz Memory: 32Gb at 3800 MHz. GPU: RTX 24Gb Titan 2 x 2160p projectors at 25Hz onto 200 FOV curved screen
Create an account or sign in to comment