Page 6 of 7

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 8:26 am
by Chips
no use.
does it matter: "Program Files" or "Program Files (86x)"

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 8:32 am
by Chips
Script is waiting for "something. MM is running and in open window

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 8:46 am
by Chips
according the script, there should be ""HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaMonkey_is1\InstallLocation"", but there is no such set in reg.

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 10:07 am
by Chips
other command scripts work, just not "play playlist from start"

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 1:17 pm
by Lowlander
I don't remember ever having seen this script, where did you find it (you should ask script questions in the scripts forum thread)?

Re: "Play playlist from start" script not working

Posted: Sun Nov 11, 2012 1:23 pm
by Chips
http://www.mediamonkey.com/forum/viewto ... 182#p25182
windows schedule scripts
by the "late" "rovingcowboy"
This is the script:
NAME: Mediamonkey Scheduled Playlist Start v1.1
'
' AUTHOR: Peke
' DATE : 16.10.2005
'
' INSTALL: 1. Read info above line with 'Playlist ='
' 2. Just start Script in Scheduled time and MediaMonkey Will play
' desired playlist.
'
' COMMENT: This is third party Windows Host Script that takes advantage of
' MediaMonkey to play desired Playlist at desired time.
'
' NOTE: Mediamonkey needs to be started before script executes
'
'==========================================================================
If WSH.Arguments.Count > 0 Then
Dim SDB, WSHShell, MMpath, Command, Result, Songs, i
Set WSHShell = CreateObject("WScript.Shell")
Result = WSHShell.AppActivate("MediaMonkey")
If Not(Result) Then
MMpath = WSHShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaMonkey_is1\InstallLocation")
If MMpath <> "" Then
Command = Chr(34)&MMpath&"mediamonkey.exe"&Chr(34)
Result = WSHShell.Run(Command,1,0)
While WSHShell.AppActivate("MediaMonkey") = False
Wend
End If
End If
WSHShell = Null
Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False
SDB.player.playlistclear
For i = 0 To (WSH.Arguments.Count-1)
sdb.player.playlistaddtracks(SDB.PlaylistByTitle(WSH.Arguments.Item(i)).tracks)
Next
If SDB.Player.isPlaying or SDB.Player.isPaused Then
SDB.Player.Stop
End If
Sdb.player.currentSongIndex = 0
SDB.player.Play
If SDB.player.currentSongIndex > 0 Then
SDB.player.currentSongIndex = 0
End If
End If



I thought this would fix it, but no:
Mediamonkey Scheduled Playlist Start v1.1
'
' AUTHOR: Peke
' DATE : 16.10.2005
'
' INSTALL: 1. Read info above line with 'Playlist ='
' 2. Just start Script in Scheduled time and MediaMonkey Will play
' desired playlist.
'
' COMMENT: This is third party Windows Host Script that takes advantage of
' MediaMonkey to play desired Playlist at desired time.
'
' NOTE: Mediamonkey needs to be started before script executes
'
'==========================================================================
If WSH.Arguments.Count > 0 Then
Dim SDB, WSHShell, MMpath, Command, Result, Songs, i
Set WSHShell = CreateObject("WScript.Shell")
Result = WSHShell.AppActivate("MediaMonkey")
If Not(Result) Then
MMpath = WSHShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MediaMonkey_is1\InstallLocation")
If MMpath <> "" Then
Command = Chr(34)&MMpath&"mediamonkey.exe"&Chr(34)
Result = WSHShell.Run(Command,1,0)
While WSHShell.AppActivate("MediaMonkey") = False
Wend
End If
End If
WSHShell = Null
Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False
SDB.player.playlistclear
For i = 0 To (WSH.Arguments.Count-1)
sdb.player.playlistaddtracks(SDB.PlaylistByTitle(WSH.Arguments.Item(i)).tracks)
Next
If SDB.Player.isPlaying or SDB.Player.isPaused Then
SDB.Player.Stop
End If
Sdb.player.currentSongIndex = 0
SDB.player.Play
If SDB.player.currentSongIndex > 0 Then
SDB.player.currentSongIndex = 0
End If
End If
Anyone?
"Windows 7 64x sp1"

Re: How to use Windows Scheduler and MM Playlists

Posted: Mon Nov 12, 2012 10:50 am
by rovingcowboy
Who said im late? That is pekes v1.1 of script its only for one list in script at a time, i use it for its simple way of editing it, but it takes one copy of the script for each playlist change try using pekes v2 of script where you are able to type in multiple playlists to one script,, it should be the script exe you download in first post of this thread. The only thing i did to his script when i sent that to you was add instructions comments at top all coding is pekes, but i see in what you posted the top line " name..... needs to have ' in front of it like the other comment lines and blank lines even the blank line at top of notepad the (if wsh) line is start of code and should not have ' as its first character, because the ' signifys statement for human to read not computer. But peke should be the one you ask for help on his script. I was just helping answer how to use it so he could deal with making other great scripts,

Re: How to use Windows Scheduler and MM Playlists

Posted: Wed Nov 28, 2012 7:34 am
by Chips
rovingcowboy wrote:Who said im late? That is pekes v1.1 of script its only for one list in script at a time, i use it for its simple way of editing it, but it takes one copy of the script for each playlist change try using pekes v2 of script where you are able to type in multiple playlists to one script,, it should be the script exe you download in first post of this thread. The only thing i did to his script when i sent that to you was add instructions comments at top all coding is pekes, but i see in what you posted the top line " name..... needs to have ' in front of it like the other comment lines and blank lines even the blank line at top of notepad the (if wsh) line is start of code and should not have ' as its first character, because the ' signifys statement for human to read not computer. But peke should be the one you ask for help on his script. I was just helping answer how to use it so he could deal with making other great scripts,
how to contact peke?

Re: How to use Windows Scheduler and MM Playlists

Posted: Wed Nov 28, 2012 10:25 am
by rovingcowboy
Chips wrote: how to contact peke?
You just did i believe by posting here, but you could also send him a pm just click on his name when your signed in to forum and then click leave personal message, 8)

Re: How to use Windows Scheduler and MM Playlists

Posted: Thu Nov 29, 2012 10:57 am
by Chips
Reinstalled MM, and by wonder, all is well again.
beats me what it was.
But, ok, for now.

Re: How to use Windows Scheduler and MM Playlists

Posted: Thu Nov 29, 2012 3:53 pm
by rovingcowboy
If reinstall of mm fixed it then over time something you been updating has caused bit rotted files that mm shares in use with that other program, and the bit rot caused mm to mess up, over installing or as you did a reinstall replaces mm's info in to those bit rotted files or replaces the files with new ones so mm will see his info and work again. Glad it is working for you.

Re: How to use Windows Scheduler and MM Playlists

Posted: Sat Dec 01, 2012 8:08 pm
by Peke
Wow, 7 Years and works :) This script uses old old way to interacts with MM and needs to be updated, but unfortunately I do not have time for that :(

Re: How to use Windows Scheduler and MM Playlists

Posted: Sat Dec 01, 2012 9:37 pm
by rovingcowboy
Ya knows what they say.!!!

If'in it aint busted don't sick ya fingers in it. 8) :lol:

Well thats redneck way of saying it but,

If it aint broke don't fix it. :)

Re: How to use Windows Scheduler and MM Playlists

Posted: Fri Feb 13, 2015 1:03 pm
by spiredem
I need background music to be played on a constant, ongoing basis, something like this:

Every Day:
8am to 2pm play Playlist A (shuffled) - at 2pm Fade Out Playlist A.
2pm to 5pm play Playlist B (shuffled) - at 5pm Fade Out Playlist B.
5pm to 8am (*Next Day) play Playlist C (shuffled) - at 8am Fade Out Playlist C.

Will the steps/script discussed allow this, especially the volume fade out?

Re: How to use Windows Scheduler and MM Playlists

Posted: Fri Feb 13, 2015 3:31 pm
by rovingcowboy
Yes just make playlist in the auto playlists. Then add their name in to pekes script. Make a task job to start mediamonkey 1 minute prior to starting any music playlists as monkey needs to be up and running to see the code to starrt the playlist. Also make a job to run the script to close monkey but change to a playlist of silent / blank song files to help protect the songs from being cut when closing mm but volume fade do you mean between 2 songs? If you do then that is called crossfade in MediaMonkey. And is done without script usage. I use the silent files between every playlist change too. It will take some time to get use to setting up but it is simple. Yes I'm still doing this I'm at 350 to 400 playlists now . :D

Just re read your post. I suggest that you stop at night for so many hours depending on the speed of the computer cpu. And run the defragmentor and an auto cleaning program like ccleaner. And restart the system after the defragmenting playing music fragments the files on the hd really bad and in a month of playing like you said you want to. I had 4 hds fragmented enough that they stopped the system. Now i run maintatance every night no trouble with fragmentation now.

also if you have tons of scheduled tasks ms scheduler might crash so get the free (system scheduler) it's better.