Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VLScreenCapture from second monitor
12-20-2011, 03:09 AM
Post: #1
VLScreenCapture from second monitor
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
VLScreenCapture from second monitor - Ted Wagner - 12-20-2011 03:09 AM
RE: VLScreenCapture from second monitor - Dave - 12-20-2011, 05:25 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)