by Chips » Sun Nov 11, 2012 1:23 pm
http://www.mediamonkey.com/forum/viewtopic.php?p=25182#p25182windows 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"
[url]http://www.mediamonkey.com/forum/viewtopic.php?p=25182#p25182[/url]
windows schedule scripts
by the "late" "rovingcowboy"
This is the script:
[quote]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 [/quote]
I thought this would fix it, but no:
[quote]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\[u]Wow6432Node\[/u]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 [/quote]
Anyone?
"Windows 7 64x sp1"