CwGetMousePosition

Syntax:

got = CwGetMousePosition stem

        ("stem" is the name of a stem variable in which the results are
         stored.  There are 2 fields of the stem that are set.)

        stem.x  (numeric) The horizontal position of the mouse, in the current
                project units.

        stem.y  (numeric) The vertical position of the mouse, in the current
                project units.

        got (boolean) This is true (1) if a mouse position exists.

Description:

Gets the current position of the mouse.

Example:

call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
        call SysLoadFuncs

        call CwGetMousePosition startpos;
        done = 0;

        do while \done;
                call SysSleep 1;
                gotpos = CwGetMousePosition( pos );
                say "pos = (" pos.x "," pos.y ")";
        end;

Remarks:

This function is only really useful for interactive scripts where precise position information is needed.

Functions by NAME

Index

Functions by PURPOSE