Interface: DialogMonitorOPS

Interfaces > Core Interfaces > DialogMonitorOPS

The DialogMonitorOPS Core Interface provides a callback system to monitor the 3ds Max User Interface. In conjunction with the Interface: UIAccessor it can be used to collect data and interact with dialogs and popups, for example to press the default or specific button in a pop-up dialog when running automated tasks or log data about the 3ds Max UI activities to a log file.

Available in 3ds Max 9 and higher.

   

Properties:

DialogMonitorOPS.Enabled : bool : Read|Write 	 

Get/Set the enabled state of the Dialog Monitor.

   

DialogMonitorOPS.Interactive : bool : Read|Write   

Get/Set the interactive state of the Dialog Monitor.

   

Methods:

<bool>DialogMonitorOPS.RegisterNotification <value>Callback  ID:<name> 

ID defaultvalue: undefined 

Registers a notification callback function with an optional user-defined ID.

The callback function can be any MAXScript function and will be called each time a dialog or menu is opened, but the best way to use this feature is to access the dialog's or menu's data using the Interface: UIAccessor methods.

The callback function MUST return a Boolean value - true on success, false on failure.

   

<bool>DialogMonitorOPS.UnRegisterNotification ID:<name> 

ID defaultvalue: undefined 

Unregisters the notification callbacks with the user-defined ID. If no ID is specified, all callbacks will be unregistered.

   

<void>DialogMonitorOPS.ShowNotification() 

Lists all registered notification callbacks with their ID and callback function.

   

<HWND>DialogMonitorOPS.GetWindowHandle() 

Returns the Window Handle of the current dialog. The handle can be used as an argument in most Interface: UIAccessor methods to collect details about the current dialog and manipulate it.

   

See Also