Cursor input routine for a window or a picture.
GETCURSOR() | [x=Real] [y=Real] | Returns co-ordinates of the point the mouse was clicked |
example:
# Shows how to use the getcursor command >> printn getcursor(0.5, 0.5)
Note: If there is more than one window where the pointer clicked, it will return the last window drawn.
Returns the point where the mouse clicked in device co-ordinates (d_x, d_y), window co-ordinates (w_x, w_y), and a character to represent the mouse button clicked ("A" for left "X" for right).
X, Y (Real) [ default = (0, 0) ]
Specifies an optional starting place to put the cross hairs on the screen. This is specified in device co-ordinates.
= (Workspace)
At the point the mouse clicked, it returns all of the possible co-ordinates and window number in a single workspace
RESULT = (Workspace)
At the point the mouse clicked, it returns all of the possible co-ordinates and window number in a single workspace.