Intrinsic-128 GetPenPos
128: GetPenPosition(Handle, @X, @Y);
This returns the current location of the pen. The position is the pixel position were the last Move, MoveTo, Line, LineTo, or TextOut operation finished.