Help - Search - Members - Calendar
Full Version: title formatting "globally"
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
iscaryoth
I'd like to use titleformatting to create text for window title. I first thought that simply running the titleformat_object will do the trick, then I tried using playback_control to exec the script, but when playback is stopped it returns nothing. What is the right way of doing this? Should I implement some hook or what? I'm running out of ideas. Of course, I'd like to use current playing context as default source of information.

Cheers.
foosion
QUOTE(iscaryoth @ Apr 8 2008, 16:46) *
What is the right way of doing this? Should I implement some hook or what?
You should check whether some track is playing or not. For example, you could check the return value of playback_control::playback_format_title(). Just as a recommendation: Do not use title formatting to set the window title when playback is stopped.
iscaryoth
yes, I did that eventually. smile.gif but I thought there might be another way of doing it, that I might have been overlooking.
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.