<?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_Auto-DJ_script</id>
	<title>Sample Auto-DJ 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_Auto-DJ_script"/>
	<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Auto-DJ_script&amp;action=history"/>
	<updated>2026-05-10T08:43:43Z</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_Auto-DJ_script&amp;diff=2696&amp;oldid=prev</id>
		<title>Ludek at 11:48, 24 May 2007</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Auto-DJ_script&amp;diff=2696&amp;oldid=prev"/>
		<updated>2007-05-24T11:48:07Z</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 11:48, 24 May 2007&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-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&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;#039; This script demonstrates how to plug-in a script that manages how Auto-DJ works.&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;#039; This script demonstrates how to plug-in a script that manages how Auto-DJ works.&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;#039;&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;#039;&lt;/div&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;&#039; [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SearchAMG&lt;/del&gt;]&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;&#039; [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;AutoDJSample&lt;/ins&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;div&gt;&amp;#039; FileName=AutoDJSample.vbs&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;#039; FileName=AutoDJSample.vbs&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;#039; DisplayName=AutoDJ Sample Plug-in&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;#039; DisplayName=AutoDJ Sample Plug-in&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ludek</name></author>
	</entry>
	<entry>
		<id>https://www.mediamonkey.com/wiki/index.php?title=Sample_Auto-DJ_script&amp;diff=2560&amp;oldid=prev</id>
		<title>Jiri at 12:23, 2 May 2007</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_Auto-DJ_script&amp;diff=2560&amp;oldid=prev"/>
		<updated>2007-05-02T12:23: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;This script demonstrates how to plug-in a script that manages how Auto-DJ works.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039; Sample AutoDJ script&lt;br /&gt;
&amp;#039;&lt;br /&gt;
&amp;#039; This script demonstrates how to plug-in a script that manages how Auto-DJ works.&lt;br /&gt;
&amp;#039;&lt;br /&gt;
&amp;#039; [SearchAMG]&lt;br /&gt;
&amp;#039; FileName=AutoDJSample.vbs&lt;br /&gt;
&amp;#039; DisplayName=AutoDJ Sample Plug-in&lt;br /&gt;
&amp;#039; Language=VBScript&lt;br /&gt;
&amp;#039; ScriptType=4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039; This procedure is called when this script should show some UI on Options Panel (note that it&amp;#039;s about a very small &lt;br /&gt;
&amp;#039; panel to be shown, more details should be configured in a separate window)&lt;br /&gt;
&amp;#039; Panel = Panel where script can place its controls&lt;br /&gt;
Sub InitConfigSheet( Panel)&lt;br /&gt;
  &amp;#039; TBD: Add some UI, mainly a button that would open another dialog with more controls for setting parameters of this AutoDJ.&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039; This procedure is called when this script should remove its UI from Options Panel.&lt;br /&gt;
&amp;#039; Panel = Panel where UI controls were previously placed by the script&lt;br /&gt;
&amp;#039; SaveConfig = Whether user pressed Ok and values in the dialog should be applied and saved (to registry, ini file, or so)&lt;br /&gt;
Sub CloseConfigSheet( Panel, SaveConfig)&lt;br /&gt;
  &amp;#039; TBD: Save values to Registry, apply them to our internal variables.&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039; This function prepares a new track to be added to Now Playing queue&lt;br /&gt;
Function GenerateNewTrack&lt;br /&gt;
  &amp;#039; This example only takes a random track from DB&lt;br /&gt;
  Set Iter = SDB.Database.OpenSQL( &amp;quot;SELECT ID FROM Songs ORDER BY random(*)&amp;quot;)&lt;br /&gt;
  ID = Iter.ValueByIndex(0)&lt;br /&gt;
  Set Iter = SDB.Database.QuerySongs( &amp;quot;ID=&amp;quot; &amp;amp; ID)&lt;br /&gt;
  Set GenerateNewTrack = Iter.Item&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jiri</name></author>
	</entry>
</feed>