Properties LONG Hwnd// Holds the hWnd of the window containing the text pointed by the user; LONG StartX // Holds an integer value identifying the X coordinates of the beginning point of the mouse gesture; LONG StartY // Holds an integer value identifying the Y coordinates of the beginning point of the mouse gesture; LONG EndX // Holds an integer value identifying the X coordinates of the ending point of the mouse gesture ;LONG EndY // This property holds an integer value identifying the Y coordinates of the point ending of the mouse gesture; Note: These properties have to be set with the screen coordinates returned by the monitor event WEvent, GetCursorInfo, GetCaretInfo or any other valid screen coordinates!
LONG Options
// can be set with any combination of the integer flags found in the W_CAPTURE_OPTIONS enumeration ;LONG ContextWordsLeft // holds the integer value for the maximum number of words to be captured on the left part of selected word(s). This property only works with the wCaptureOptionsGetContext flag set ;LONG ContextWordsRight // holds the integer value for the maximum number of words to be captured on the right part of selected word(s). This property only works with the wCaptureOptionsGetContext flag set. BSTR Separators
// holds the list of characters that act as word separators. During linguistic analysis word boundaries are simply find when we encounter a character in this list.
BSTR OCRLanguage
// This property belongs to the IWInput2 interface.
Options
property must have the
wCaptureOptionsGetTessOCRText
flag set when using this property.
BSTR AllowedCharacters
// This property belongs to the IWInput3 interface.
Options
property must have the
wCaptureOptionsGetTessOCRText
flag set when using this property.
BSTR DeniedCharacters
// This property belongs to the IWInput3 interface.
Options
property must have the
wCaptureOptionsGetTessOCRText
flag set when using this property.
Errors
E_INVALIDARG
// an invalid argument is passed .
|
WCaptureX component >