CaptureWindowUnderCursor Example for Visual Basic

    'set 3 sec delay
    LEADRasterScr1.CaptureDelay = 3000
    
    'capture window under cursor
    LEADRasterScr1.CaptureWindowUnderCursor
    
    'copy the captured image to a Main Control
    LEADRasterView1.Raster.Bitmap = LEADRasterScr1.Bitmap