Andrey1994 / screen_recorder_sdk

Library to take screenshots and record videos
https://screen-recorder-sdk.readthedocs.io/en/latest/
MIT License
46 stars 15 forks source link

Identify and get RecorderParams.desktop_num of multiple displays #22

Open hwcho11 opened 1 year ago

hwcho11 commented 1 year ago

I had guessed that the order of desktop_num values is the same as the Identify order in the 'Display settings', or the get_monitors() order in the package 'screeninfo'. However I only found that the primary display is always 0, and I don't know in what order the rest are numbered. Could you tell me if there is a callable function from ScreenRecorder.dll that can get desktop_num and other key values corresponding to each displays or desktops?

Andrey1994 commented 1 year ago

here is a method which is used by this library behind the scene https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiadapter-enumoutputs

you are correct that 0 corresponds to the primary display

I dont know what get_monitors does and how it works