Lingo Dictionary > D-F > deactivateApplication |
![]() ![]() ![]() |
deactivateApplication
Syntax
on deactivateApplication
Description
Built-in handler; runs when the projector is sent to the background. This handler is useful when a projector runs in a window and the user can send it to the background to work with other applications. Any MIAWs running in the projector can also make use of this handler.
During authoring, this handler is called only if Animate in Background is turned on in General Preferences.
On Windows, this handler is not called if the projector is merely minimized and no other application is brought to the foreground.
Example
This handler plays a sound each time the user sends the projector to the background:
on deactivateApplication sound(1).queue(member("closeSound")) sound(1).play() end
See also
activateApplication
, on activateWindow
, on deactivateWindow
![]() ![]() ![]() |