Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnAppClose: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23:45:52 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnAppClose.htm --> | <!-- Generated @ 08/12/2022 23:45:52 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnAppClose.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__ | ||
= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].OnAppClose Event = | |||
Fires when the MSN® Messenger window is about to close. | Fires when the MSN® Messenger window is about to close. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 12: | Line 12: | ||
<pre class="clsCode">function Channel_OnAppClose() | <pre class="clsCode">function Channel_OnAppClose() | ||
' Messenger is shutting down, clean up application | ' Messenger is shutting down, clean up application | ||
End Function | End Function</pre> | ||
</div> | </div> | ||
JavaScript Syntax | |||
=== JavaScript Syntax === | |||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 22: | Line 22: | ||
<pre class="clsCode">function Channel_OnAppClose() { | <pre class="clsCode">function Channel_OnAppClose() { | ||
// Messenger is shutting down, clean up application | // Messenger is shutting down, clean up application | ||
} | }</pre> | ||
</div> | </div> | ||
Remarks | |||
=== Remarks === | |||
MSN Messenger will give only a limited amount of time for an application to shut down. It will not remain open if an application remains busy more than a few seconds after <span class="clsEvent">OnAppClose</span> fires. Save state quickly if necessary, and avoid opening any new dialog boxes, because data or input could be lost. | MSN Messenger will give only a limited amount of time for an application to shut down. It will not remain open if an application remains busy more than a few seconds after <span class="clsEvent">OnAppClose</span> fires. Save state quickly if necessary, and avoid opening any new dialog boxes, because data or input could be lost. |
Latest revision as of 00:44, 13 August 2022
Channel.OnAppClose Event
Fires when the MSN® Messenger window is about to close.
VBScript Syntax
function Channel_OnAppClose() ' Messenger is shutting down, clean up application End Function
JavaScript Syntax
function Channel_OnAppClose() { // Messenger is shutting down, clean up application }
Remarks
MSN Messenger will give only a limited amount of time for an application to shut down. It will not remain open if an application remains busy more than a few seconds after OnAppClose fires. Save state quickly if necessary, and avoid opening any new dialog boxes, because data or input could be lost.