Can someone show me how to tag the currently playing song? I was able to create a Script with a global hotkey, but I'm not sure how to make it do what I want.
If someone could show me a script that tags Custom1 to "Instrumental", that would be nice. Thanks
Script to Tag Now Playing Song
Moderators: Gurus, Addon Administrators
Re: Script to Tag Now Playing Song
Bump. I still need help. I would really do it myself if only there were any good examples...
Re: Script to Tag Now Playing Song
This works in MM 3.2.6. I have not switched to 4.0
Save this as NowPlayingGenre.vbs in scripts directory
Add this to the scripts.ini file
Assign a hot key to the script usingtool->Options -> hotkey. I tried ctrl+Shft+I without any problem.
Save this as NowPlayingGenre.vbs in scripts directory
Code: Select all
Sub NowPlayingGenre
Dim SDB
Set SDB = CreateObject("SongsDB.SDBApplication")
Dim cursong
Set cursong = SDB.Player.CurrentSong
cursong.Custom1 = "Instrumental"
Dim list
Set list = SDB.NewSongList
list.Add(cursong)
list.UpdateAll
Set list = Nothing
Set SDB = Nothing
Set cursong = Nothing
End Sub
Code: Select all
[NowPlayingGenre]
Filename=NowPlayingGenre.vbs
ProcName=NowPlayingGenre
Order=601
DisplayName=Assign Instrumental to song playing now
Description=Assign Instrumental to song playing now
Language=VBScript
ScriptType=0
Re: Script to Tag Now Playing Song
Thanks LikeMM, it works flawlessly
Re: Script to Tag Now Playing Song
Can you please tell me how you managed to set a global hotkey within .vbs100kV wrote:Can someone show me how to tag the currently playing song? I was able to create a Script with a global hotkey, but I'm not sure how to make it do what I want .......
Or at least how you managed to run a script with a global hotkey?
Are you sure the hotkey is global????
I couldn't really do it global using .vbs ....
Thank you