» Home

  » Plugins

      » Mime

            » Supported Directives

Brass Plugins: Mime

 

Supported Directives: Directive - Restore Target Window

If the target window has been changed by the [SetTargetWnd()] directive, this directive restores the target window to the one that the gesture was originally made in.

The format of the directive is:

[RestoreTargetWnd()]

 

No parameters are required.

 

Detailed Explanation

Please refer to the [SetTargetWnd()] directive page for a complete explanation of how to use this directive.

 

Example

Restore the target window to the one the gesture was made in:

[RestoreTargetWnd()]

 

Example of use in a full directive string

[SetTargetWnd(Notepad,0)]%%[Menu(37,overall)]%%[RestoreTargetWnd()]

 

Technical Notes

Please refer to the [SetTargetWnd()] directive page for a complete explanation of how to use this directive.

Note that the target is always changed back to the original window the gesture was made in. This is a fail-safe.