W_CAPTURE_OPTIONS enum

Mask bits enumeration that can be used simultaneously using | (bitwise or) operator. Used to configure capture options through WInput->Options param.

General flags


wCaptureOptionsNone
// (=0) No option is selected; 

wCaptureOptionsHighlightWords
// (=1) If this flag is set the captured word(s) will be highlighted; 

wCaptureOptionsGetContext
// (=2) If this flag is set "capture" method also returns the contextual text. Else contextual text parameter will be NULL; 

wCaptureOptionsGetBetweenPoints
// (=4) If this flag is set "capture" method gets the text for mouse gesture. Else "capture" method returns only the first clicked word. To enable mouse gesture you must also pass true to start method last parameter; 

wCaptureOptionsGetHighlightCoordinates
// (=8) If this flag is set “capture” method will also return the coordinates of the highlight rectangle; 

wCaptureOptionsRecognizeLinks
// (=16) If this flag is set “Capture” method makes a link identification and returns the full link if any is clicked.

wCaptureOptionsUseWindowsWordBreaking
// (=32) If this flag is set “Capture” method treats any character that is not alphanumeric as separator.

wCaptureOptionsGetParagraph
// (=64) If this flag is set “Capture” method also gets the paragraph that contains the captured text. The paragraph will be found in the WResult::Paragraph property.

wCaptureOptionsGetSelectedText
// (=128) If this flag is set “Capture” method gets the currently selected text from the foreground window. If this flag is set, the WInput::hwnd,StartX,StartY,EndX,EndY properties are ignored.


OCR flags


wCaptureOptionsGetTessOCRText
// (=256) If this flag is set, then the capture is performed using OCR technology.

Note: You should check out our Sample Projects for a better understanding of using these flags.

Comments