How to use Windows Scheduler and MM Playlists

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: How to use Windows Scheduler and MM Playlists

Re: How to use Windows Scheduler and MM Playlists

Post by rovingcowboy » Sat Dec 01, 2012 9:37 pm

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

Post by Peke » Sat Dec 01, 2012 8:08 pm

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

Post by rovingcowboy » Thu Nov 29, 2012 3:53 pm

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

Post by Chips » Thu Nov 29, 2012 10:57 am

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

Post by rovingcowboy » Wed Nov 28, 2012 10:25 am

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

Post by Chips » Wed Nov 28, 2012 7:34 am

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

Post by rovingcowboy » Mon Nov 12, 2012 10:50 am

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: "Play playlist from start" script not working

Post by Chips » Sun Nov 11, 2012 1:23 pm

http://www.mediamonkey.com/forum/viewtopic.php?p=25182#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: "Play playlist from start" script not working

Post by Lowlander » Sun Nov 11, 2012 1:17 pm

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

Post by Chips » Sun Nov 11, 2012 10:07 am

other command scripts work, just not "play playlist from start"

Re: "Play playlist from start" script not working

Post by Chips » Sun Nov 11, 2012 8:46 am

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

Post by Chips » Sun Nov 11, 2012 8:32 am

Script is waiting for "something. MM is running and in open window

Re: "Play playlist from start" script not working

Post by Chips » Sun Nov 11, 2012 8:26 am

no use.
does it matter: "Program Files" or "Program Files (86x)"

Re: "Play playlist from start" script not working

Post by Chips » Sun Nov 11, 2012 8:15 am

going to try reinstall now

"Play playlist from start" script not working

Post by Chips » Sun Nov 11, 2012 8:14 am

MM 4.06
Windows 7 64x
script is not working anymore.
has till yesterday, no new progs installed, just windows updates
anyone knows why?
i'm stuck

Top