WInput Interface

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.
A better approach would be keeping a set of separators for each language but that would imply a too complex interface that is beyond the scope of this library. You can provide your own character set or just rely on the default (about Default Separators)set.

BSTR OCRLanguage
// This property belongs to the IWInput2 interface.
// It holds the language which will be used for recognizing text through OCR.
// The
Options property must have the wCaptureOptionsGetTessOCRText flag set when using this property.

BSTR AllowedCharacters
// This property belongs to the IWInput3 interface.
// It holds the list of characters which will be used for recognizing text through OCR. All the recognized characters will be in this list.
// The
Options property must have the wCaptureOptionsGetTessOCRText flag set when using this property.

BSTR DeniedCharacters
// This property belongs to the IWInput3 interface.
// It holds the list of characters which will be avoided when recognizing text through OCR.
// The
Options property must have the wCaptureOptionsGetTessOCRText flag set when using this property.

Errors
E_INVALIDARG
// an invalid argument is passed.


Subpages (1): Default Separators
Comments