CaptureEXE method (Screen Control)

C++ Builder example

Delphi 4.0 Example

 

Builder Syntax

int __fastcall CaptureEXE(System::AnsiString pFileName, int iResType, char * pResourceID, bool bIsNumberResourceID, bool bCaptureByIndex);

Delphi Syntax

function CaptureEXE (pFileName: String; iResType: Integer; pResourceID: pChar; bIsNumberResourceID: Boolean; bCaptureByIndex: Boolean): Integer;

Overview

Refer to Implementing Screen Capture.

Remarks

Captures the resource identified by pResourceID and iResType from the specified executable file.

If you want to pass a string ID in pResourceID, then set bIsNumberResourceID to FALSE and set bCaptureByIndex to FALSE.

If you want to pass a numeric ID in pResourceID, then set bIsNumberResourceID to TRUE and set bCaptureByIndex to FALSE.

If you want to pass an index in pResourceID, then set bIsNumberResourceID to TRUE and set bCaptureByIndex to TRUE.

This method does not require the use of the hot key for capture.

See Also

Elements:

CaptureEXEDlg method, Bitmap property, CaptureActiveClient method, CaptureActiveWindow method, CaptureFullScreen method, CaptureMenuUnderCursor method, CaptureWindowUnderCursor method, CaptureWallPaper, CaptureSelectedObject method, CaptureMouseCursor method, CaptureOptionDlg method, CaptureAreaOptionDlg method, CaptureObjectOptionDlg method, Bitmap, OnCaptureImage event