Ah, it is a popup window. You'd have to test it locally.
Available switches:
/add <list-of-files> - appends the specified files to the current playlist instead of replacing the playlist content and playing them immediately
/immediate - suppresses the delay when adding files
/play, /pause, /playpause, /prev, /next, /rand, /stop - playback controls
/exit - exits foobar2000
/show, /hide - shows or hides the main foobar2000 window
/config - opens the Preferences dialog
/command:<menu command> - invokes the specified main menu command
/playlist_command:<context menu command> - invokes the specified context menu command on current playlist selection
/playing_command:<context menu command> - invokes the specified context menu command on currently played track
/context_command:<context menu command> <files> - invokes the specified context menu command on the specified files
Right, ok. Thanks for this. I've made a little progress. The code now looks like this which is a little less convoluted:
subprocess.call('start "Energy List" "'+FOOBARPATH+'" /command:"Shuffle (tracks)" "E:\\Music\\Playlists\\Energy.fpl" /command:"Set to -6 dB"', shell=True)
time.sleep(1)
subprocess.call('"'+FOOBARPATH+'" /rand', shell=True)
I wasn't aware of the "/rand" command. I think the core of the problem here is that even if shuffle is selected before the playlist is opened, it always starts at the beginning of the playlist. With that extra command there it at least gives me a random playlist insertion point, which then gives me a newly shuffled playlist.
How did you see those list of commands your side? I'll take a screenshot of it and put it in my Foobar2000 folder.