imaqGetMousePos
Usage
int imaqGetMousePos(Point* position, int* windowNumber);
Purpose
Returns the mouse cursor coordinates and window number of the most recent instance that the mouse cursor was located over an active window.
Parameters
Name
|
Type
|
Description
|
---|---|---|
position | Point* | On return, the coordinates of the mouse in the active image window. Set this parameter to NULL if you do not need this information. |
windowNumber | int* | On return, contains the window number of the active window. Set this parameter to NULL if you do not need this information. |
Return Value
Type |
Description |
---|---|
int | On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError(). |