Intercepting commands

 

You can intercept a command when the user chooses it, whether from a menu or from a button. Then the integration can perform some intermediate task before allowing the action to occur. You must intercept external commands.

To customize menu and button actions:

1. Set up the NotifyMenuIntercept notification to receive an advise when an Imagenation user chooses a command that is targeted for interception.

2. Use the IN_InterceptMenuAction( commandID, TRUE ) to intercept a command and perform the associated action.

Note that you can use the IN_ApproveMenuAction function to allow a command that has been intercepted to proceed as though it has not.

See also

Defining external commands

Controlling notifications and queries

Defining menu bars

Defining buttons and button bars