<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediamonkey.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sample_Event_Handlers_script</id>
	<title>Sample Event Handlers script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediamonkey.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sample_Event_Handlers_script"/>
	<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;action=history"/>
	<updated>2026-05-04T00:17:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=6679&amp;oldid=prev</id>
		<title>Mcow: fixed link</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=6679&amp;oldid=prev"/>
		<updated>2011-07-20T15:52:23Z</updated>

		<summary type="html">&lt;p&gt;fixed link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:52, 20 July 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of MediaMonkey 4, events can also be received by external programs.  See [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this example|&lt;/del&gt;Python event handling]], using Python.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of MediaMonkey 4, events can also be received by external programs.  See [[Python event handling&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|this example&lt;/ins&gt;]], using Python.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mcow</name></author>
	</entry>
	<entry>
		<id>https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=6677&amp;oldid=prev</id>
		<title>Mcow at 15:45, 20 July 2011</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=6677&amp;oldid=prev"/>
		<updated>2011-07-20T15:45:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:45, 20 July 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;As of MediaMonkey 4, events can also be received by external programs.  See [[this example|Python event handling]], using Python.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mcow</name></author>
	</entry>
	<entry>
		<id>https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=2101&amp;oldid=prev</id>
		<title>Jiri at 19:19, 30 March 2007</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Event_Handlers_script&amp;diff=2101&amp;oldid=prev"/>
		<updated>2007-03-30T19:19:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039; This script shows how to use COM events in MediaMonkey scripting. &lt;br /&gt;
&amp;#039; You can associate event with a VB procedure and cancel the association later. &lt;br /&gt;
&lt;br /&gt;
Sub OnStartup &lt;br /&gt;
  Script.RegisterEvent SDB, &amp;quot;OnShutdown&amp;quot;, &amp;quot;SDBShutdown&amp;quot; &lt;br /&gt;
  Script.RegisterEvent SDB, &amp;quot;OnTrackProperties&amp;quot;, &amp;quot;SDBTrackProperties&amp;quot; &lt;br /&gt;
  Script.RegisterEvent SDB, &amp;quot;OnPlay&amp;quot;, &amp;quot;SDBPlay&amp;quot; &lt;br /&gt;
  Script.RegisterEvent SDB, &amp;quot;OnPause&amp;quot;, &amp;quot;SDBPause&amp;quot; &lt;br /&gt;
  Set Tmr = SDB.CreateTimer( 10000)   &amp;#039; Pop up a message in 10 seconds &lt;br /&gt;
  Script.RegisterEvent Tmr, &amp;quot;OnTimer&amp;quot;, &amp;quot;TestTimer&amp;quot; &lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Sub SDBTrackProperties( tracks) &lt;br /&gt;
  SDB.MessageBox &amp;quot;Wow, track properties were modified for &amp;quot;&amp;amp;tracks.count&amp;amp;&amp;quot; track(s)!&amp;quot;, mtInformation, Array(mbOk) &lt;br /&gt;
&amp;#039;  Script.UnregisterEvents SDB &lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Sub SDBShutdown &lt;br /&gt;
  SDB.MessageBox &amp;quot;MediaMonkey is finishing... :(&amp;quot;, mtInformation, Array(mbOk) &lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Sub SDBPlay &lt;br /&gt;
  SDB.MessageBox &amp;quot;Started playback of &amp;quot;&amp;amp;SDB.Player.CurrentSong.ArtistName&amp;amp;_ &lt;br /&gt;
    &amp;quot; - &amp;quot;&amp;amp;SDB.Player.CurrentSong.Title, mtInformation, Array(mbOk) &lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Sub SDBPause &lt;br /&gt;
  If SDB.Player.isPaused Then &lt;br /&gt;
    SDB.MessageBox &amp;quot;Playback paused&amp;quot;, mtInformation, Array(mbOk) &lt;br /&gt;
  End If &lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Sub TestTimer( Timer) &lt;br /&gt;
  SDB.MessageBox &amp;quot;10 seconds elapsed!&amp;quot;, mtInformation, Array(mbOk) &lt;br /&gt;
  Script.UnregisterEvents Timer  &amp;#039; Terminate usage of this timer &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jiri</name></author>
	</entry>
</feed>