Difference between revisions of "ISDBApplicationEvents::OnPartyModeEnabled"

From MediaMonkey Wiki
Jump to: navigation, search
(Event description)
m (introduced, declaration)
 
Line 1: Line 1:
 +
{{MethodDeclaration|SDBApplication|ISDBApplicationEvents|Sub OnPartyModeEnabled(Enabled As Boolean)}}
 +
 
===Parameters===
 
===Parameters===
  
Line 7: Line 9:
 
===Event description===
 
===Event description===
  
Is called when Party mode has entered/exited
+
Is called when Party mode state changes.
  
Note: This event takes effect from MediaMonkey 4.1 and higher!
+
{{Introduced|4.1}}
  
 
===Example code===                     
 
===Example code===                     
Line 18: Line 20:
 
End Sub
 
End Sub
  
Sub SDBPartyModeEnabled( Enabled)
+
Sub SDBPartyModeEnabled(Enabled)
 
     if Enabled then
 
     if Enabled then
 
       MsgBox("Party mode entered")
 
       MsgBox("Party mode entered")

Latest revision as of 21:39, 20 April 2013

CoClass SDBApplication, Interface ISDBApplicationEvents

Sub OnPartyModeEnabled(Enabled As Boolean)


Parameters

Name Type Description
Enabled Boolean Enabled is True when Party mode has entered and False when Party mode has exited


Event description

Is called when Party mode state changes.

Introduced in MediaMonkey version 4.1.


Example code

Sub OnStartUp()    
    Script.RegisterEvent SDB, "OnPartyModeEnabled", "SDBPartyModeEnabled"
End Sub

Sub SDBPartyModeEnabled(Enabled)
    if Enabled then
      MsgBox("Party mode entered")
    else
      MsgBox("Party mode exited")
    end if  
End Sub