How to control foobar?
2010-10-17 04:26:43
I was playing with some scripts and noticed that it's much easier to control foobar through Winamp wrapper and even take user messages, than some other way. For example, here are WM_APPCOMMANDs that foobar {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} class supports:BROWSER_BACKWARD = Previous Track BROWSER_FORWARD = Next Track BROWSER_REFRESH = BROWSER_STOP = Playback Stop BROWSER_SEARCH = Playlist Search BROWSER_FAVORITES = BROWSER_HOME * = Goto Home page in default browser VOLUME_MUTE = Toggle Mute VOLUME_DOWN = VOLUME_UP = MEDIA_NEXTTRACK = Next Track MEDIA_PREVIOUSTRACK = Previous Track MEDIA_STOP = Stop Playback MEDIA_PLAY_PAUSE = Playback/Pause LAUNCH_MAIL * = Launches default mail client LAUNCH_MEDIA_SELECT !* = "Beta version has expired" dialog LAUNCH_APP1 * = Opens "My Computer" LAUNCH_APP2 * = Launches Calculator BASS_DOWN = BASS_BOOST = BASS_UP = TREBLE_DOWN = TREBLE_UP = MICROPHONE_VOLUME_MUTE = MICROPHONE_VOLUME_DOWN = MICROPHONE_VOLUME_UP = HELP = FIND = NEW = OPEN = CLOSE = SAVE = PRINT = UNDO = REDO = COPY = CUT = PASTE = REPLY_TO_MAIL = FORWARD_MAIL = SEND_MAIL = SPELL_CHECK = DICTATE_OR_COMMAND_CONTROL_TOGGLE = MIC_ON_OFF_TOGGLE = CORRECTION_LIST = MEDIA_PLAY = Play MEDIA_PAUSE = Pause MEDIA_RECORD = MEDIA_FAST_FORWARD = Ahead by 10s MEDIA_REWIND = Back by 10s MEDIA_CHANNEL_UP = MEDIA_CHANNEL_DOWN = DELETE = DWM_FLIP3D = * asterisked commands can be changed in registry ! this command always launches annoying "Beta version" dialog, then opens browser and directs to foobar home page, even if I try to control other existent window class like MPC! WM_APPCOMs are Windows advantage for easily managing various remote controls or control programs/scripts As it seems that main foobar control feature are keyboard shortcuts, being the only way to accomplish certain actions, I would like to propose making WM_APPCOMMANDs bind to keyboard shortcuts