Re: foo_random_pools
Reply #189 – 2016-05-24 20:44:47
I would be interested in any feedback on the idea: good, dumb, not worth the time to implement, too hard to implement, etc. Basically the idea is not bad and I might implement this in some way in the more or less far future. However, you can at least partially get what you want by using foo_scheduler as described below in combination with the "Set active playlist" action. Also, you can get what you want by utilizing foo_jscript_panel with the a piece of code similar to this (not tested, no error handling):function getPlaylistIndex(name) { var idx=-1; for(var i=0;i<plman.PlaylistCount;i++) { if(plman.GetPlaylistName(i)===name) { idx=i; break; } } return idx; } function poolToPlaylist(poolName,playlistName) { var playlistIndex=getPlaylistIndex(playlistName); plman.ActivePlaylist=playlistIndex; plman.ClearPlaylist(playlistIndex); fb.RunMainMenuCommand("Random pools/"+poolName); } poolToPlaylist("Pool1","Playlist1"); poolToPlaylist("Pool2","Playlist2"); .... Of course, you need to either create a button or a main menu entry to run this code.Is there a way to schedule random pools to activate every so often? Basically a way to have it work with the Scheduler plugin? Yes, just use the "Launch application" action with foobar2000.exe /command:"<pool name>". You might need to supply the full path to foobar2000.exe For the restrictions for the /command parameter and how to overcome them, see here .