MAXScript Tools and Interaction with 3ds Max > Creating MAXScript Tools > ActiveX Controls in MAXScript Rollouts >

# ActiveX Controls Cursor Access

Note

ActiveX Controls have been deprecated by Microsoft in the latest versions of the Windows operating system in favor of the DotNet framework and its controls.

While MAXScript still supports ActiveX controls, these have to be installed and registered on the system to be accessible to MAXScript.

As a replacement of ActiveX controls, MAXScript supports DotNet controls in 3ds Max 9 and higher.

The following functions can be used to get the mouse cursor position in ActiveX controls:

    getCursorPos <ActiveXControl>

Returns a Point2 value in pixels giving the current mouse cursor position in the ActiveX control’s window coordinate space.

    mapPoint <ActiveXControl> <Point2>

Returns a Point2 value in pixels where the input Point2 coordinate value is mapped from the ActiveX control’s window coordinate space to the control's dialog coordinate space.

#### See Also

- ActiveX Controls in MAXScript Rollouts