Help - Search - Members - Calendar
Full Version: Control foobar from an other application
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
ume
I am trying to write a little application to control foobar2000 with my remote control. Unfortunately I haven't found any documents how to do that. Hence I made some experiments, but I had no luck.

1st problem is, that the name of the window that handles the keyevents depends on which plugins you have use. for example foo_ui_std.dll or foo_ui_columns.dll. That is not really nice, but this problem can be solved.

2nd problem is, that the window that handles the keyevents doesn't process every key. if I send a cursor-down event for example with
CODE
PostMessage( foobarWindowHandle, WM_KEYDOWN, VK_DOWN, 0);
nothing happens. But if I send
CODE
PostMessage( foobarWindowHandle, WM_KEYDOWN, VkKeyScan('c'), 0);
foobar2000 starts playing.

Any idea how to solve my problem?

Thank you!
foosion
The name if the main window is not standardized, so it is not documented anywhere. The same goes for details about what messages the main window has to handle. Controling foobar2000 by sending window messages to the main window is not supported and strongly discouraged.

The prefered way to control foobar2000 is by using command line commands or a custom plugin. As far as I remember, there are already such plugins, the newest one seems to be foo_rmx (just search the 3rd party plugins forum for the thread).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.