OptimizedHotkey property (ILEADRasterScr)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

BOOL OptimizedHotkey

Overview

Refer to Implementing Screen Capture.

Remarks

Gets or sets a value that indicates whether to optimize hotkey processing. Possible values are:

Setting

Description

TRUE

Optimize hotkey processing.

FALSE

Use normal hotkey processing.

Normally, when a capture method is called, the method enters a loop, and waits for the hot key specified in the CaptureHotKey property to be pressed, before capturing. This loop can cause the CPU usage indicator to appear maxed out. Setting this property to TRUE will cause the capture function to return immediately, if a hotkey has been specified in the CaptureHotKey property. In this case, a global system hotkey hook is established and used to wait for the hotkey to be pressed. When the hotkey is pressed, the capture is performed and the CaptureImage is fired. Use this option only if the normal behavior is causing your application problems. This option is ignored in Win95/98/Me.

See Also

Elements:

CaptureHotKey property, CaptureHotKeyModifiers property, CaptureHotKeyPressed property, CaptureActiveClient method, CaptureActiveWindow method, CaptureArea, CaptureEXE method, CaptureFullScreen method, CaptureMenuUnderCursor method, CaptureMouseCursor method, CaptureSelectedObject method, CaptureWallPaper method, CaptureWindowUnderCursor method

Topics:

Screen Capture: Hot Key Properties