12-20-2011, 03:09 AM
I'm trying to use a TVLScreenCapture instance to screen-capture my second monitor, like this:
CaptureDisplay := 1; // second monitor
VLScreenCapture1.Enabled := false;
VLScreenCapture1.Stop;
VLScreenCapture1.Region.Top := screen.Monitors[CaptureDisplay].Top;
VLScreenCapture1.Region.Left := screen.Monitors[CaptureDisplay].Left;
VLScreenCapture1.Region.Width := screen.Monitors[CaptureDisplay].Width;
VLScreenCapture1.Region.Height := screen.Monitors[CaptureDisplay].Height;
VLScreenCapture1.Region.Mode := crmScreen;
VLScreenCapture1.ImageSize.Width := ClientWidth;
VLScreenCapture1.ImageSize.Height := ClientHeight;
VLScreenCapture1.Enabled := true;
VLScreenCapture1.Start;
But it's capturing the first display (0) instead of the second (1).
Am I missing something obvious? (Or not so obvious?)
Thanks
ted
CaptureDisplay := 1; // second monitor
VLScreenCapture1.Enabled := false;
VLScreenCapture1.Stop;
VLScreenCapture1.Region.Top := screen.Monitors[CaptureDisplay].Top;
VLScreenCapture1.Region.Left := screen.Monitors[CaptureDisplay].Left;
VLScreenCapture1.Region.Width := screen.Monitors[CaptureDisplay].Width;
VLScreenCapture1.Region.Height := screen.Monitors[CaptureDisplay].Height;
VLScreenCapture1.Region.Mode := crmScreen;
VLScreenCapture1.ImageSize.Width := ClientWidth;
VLScreenCapture1.ImageSize.Height := ClientHeight;
VLScreenCapture1.Enabled := true;
VLScreenCapture1.Start;
But it's capturing the first display (0) instead of the second (1).
Am I missing something obvious? (Or not so obvious?)
Thanks
ted