CaptureEXE Example for Builder 3.0
LEADScr1->TransparentColor = clWhite;
LEAD1->TransparentColor = clWhite;
LEAD1->UseTransparentColor = true;
/*capture by string resource id*/
LEADScr1->CaptureEXE("c:\\windows\\calc.exe", CAPTURE_ICON, "sc", false, false);
LEAD1->Bitmap = LEADScr1->Bitmap;
ShowMessage("Wait");
/*now, capture by numeric resource id*/
LEADScr1->CaptureEXE("c:\\windows\\defrag.exe", CAPTURE_ICON, "111", true, false);
LEAD1->Bitmap = LEADScr1->Bitmap;
ShowMessage("Wait");
/*finally, capture by resource index*/
LEADScr1->CaptureEXE("c:\\windows\\calc.exe", CAPTURE_ICON, "0", true, true);
LEAD1->Bitmap = LEADScr1->Bitmap;
ShowMessage("Wait");