HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: haloeight on 2003-05-03 03:55:15

Title: foo_tbar problem
Post by: haloeight on 2003-05-03 03:55:15
Occasionally Foo_tbar will try and display the name of the track playing in the windows task bar. The output ends up being garbled. If I click on the button to show all tray icons, the garbled text is wiped, but it keeps on reappearing.

I thought at first this was because Foobar was set to minimize to the tray, and when in the tray, foo_tbar would try and display track information in the taskbar. So I turned off minimize to tray, no luck, problem still there. I'm guessing that foo_tbar is not playing well when there are hidden icons in the tray.

Does anyone know how to fix this? I'd prefer not to have to show all tray icons, if that's what foo_tbar is not jiving with.
Title: foo_tbar problem
Post by: Dhry on 2003-05-08 00:11:10
Quote
Occasionally Foo_tbar will try and display the name of the track playing in the windows task bar.

I also have this problem (WinXP Pro).
BTW, you've already mentioned this before (http://www.hydrogenaudio.org/forums/index.php?act=ST&f=27&t=8638&hl=foo_tbar)..
Title: foo_tbar problem
Post by: SMF007 on 2003-05-08 03:31:28
I cannot replicate this error in either nt4 or 2k.  So it actually starts writing on the system tray?  Must be an XP thing.  I will try and look into this more, along with getting an ansi version done.  I just gotta find some time to work on it.

Edit.
Can you guys post a screen capture of it?
Title: foo_tbar problem
Post by: haloeight on 2003-05-08 22:08:46
(http://home.golden.net/~sandeepde/tbartray.jpg)

(http://home.golden.net/~sandeepde/tbartask.jpg)
Title: foo_tbar problem
Post by: SMF007 on 2003-05-09 02:32:58
I see now.  It appears MS changed the system tray "name" in XP.  Now to figure out what they changed it to.

Anyone know the window class for the system tray?
Title: foo_tbar problem
Post by: haloeight on 2003-05-09 04:08:42
Thanks SMF for both the effort and the otherwise highly useful plugin. I know you're busy so the time you're taking out to address this problem is appreciated.

FYI, if I click on the "show hidden icons" button in the tray, it gets rid of the text temporarily. Similarly, if I mouse over the buttons in the taskbar where the text is displayed, it clears it up too.
Title: foo_tbar problem
Post by: Curi0us_George on 2003-05-09 06:46:28
Quote
I see now.  It appears MS changed the system tray "name" in XP.  Now to figure out what they changed it to.

Anyone know the window class for the system tray?

Spy++ reports it as "TrayNotifyWnd"

P.S.  The entire Taskbar has the classname "Shell_TrayWnd"

The area with just the minimized windows is "ReBarWindow32".

Then, inside the ReBarWindow32, there's a "MSTaskSwWClass" with the caption "Running Applications", and inside that is a "ToolbarWindow32", also with the caption "Running Applications".

There are, of course, a few other window classes in there.  If you need those, I can post them.
Title: foo_tbar problem
Post by: SMF007 on 2003-05-09 22:36:06
Thanks Curi0us_George.  That makes it a little interesting then as tbar is not supposed to write on "Shell_TrayWnd".  I'll get you guys a beta version with those other classes added into the exclusion list.

Edit.
Try this out boys.  See if this resolves the issue.  T_bar beta 1.0d (http://www3.sympatico.ca/froebe/foo_tbar_beta1.0d.zip)
Title: foo_tbar problem
Post by: Curi0us_George on 2003-05-09 23:06:59
No problem.  I hope you can get it working. 

I'd help test, but when I had it installed, I wasn't seeing the "bug" anyway.
Title: foo_tbar problem
Post by: SMF007 on 2003-05-09 23:37:21
Curi0us_George, you are running XP correct?  In that case maybe it is one of the programs they have in their system tray that is bugging it out.  I just thought of that after looking at those snapshots again.  I am starting to think this isn't a system tray issue.
Title: foo_tbar problem
Post by: Curi0us_George on 2003-05-10 00:08:14
Yep.  I'm running XP pro.
Title: foo_tbar problem
Post by: haloeight on 2003-05-10 05:02:27
Giving the beta a shot, will post my findings with it. Thank you.

FWIW, I've wondered if the strange behaviour was because traybar icons were being hidden instead of all displayed at once.
Title: foo_tbar problem
Post by: haloeight on 2003-05-10 17:07:35
tray problem happened with the new beta

(http://home.golden.net/~sandeepde/tbartraybeta.jpg)
Title: foo_tbar problem
Post by: SMF007 on 2003-05-10 17:26:13
In that case poorimpulsectrl, what are you running in the system tray?  Tbar isn't writting on the system tray, it must be writting on one of the programs in the system tray.  Are you running a windows skinning program other than the built-in one?  Because that could also be the problem.  Try removing things one at a time until you find the suspect application.
Title: foo_tbar problem
Post by: Curi0us_George on 2003-05-10 18:04:45
Is it possible that it's writing onto the "Button" class (the little arrow)?

There's not really a whole lot of stuff going on there.  Shell_TrayWnd, TrayNotifyWnd, SysPager, ToolbarWindow32, Button, TrayClockWClass, MSTaskSwWClass, and ReBarWindow32.  That's all the taskbar uses.

edit: Maybe you should publish a "debug" version, which will report every window it writes on to the console.  Have it report the window class it writes to, and we should be able to figure out what's going on pretty quickly.
Title: foo_tbar problem
Post by: SMF007 on 2003-05-15 00:11:21
poorimpulsectrl is this still an issue with the new version 1.51 (http://www.hydrogenaudio.org/forums/index.php?act=ST&f=27&t=9389)?
Title: foo_tbar problem
Post by: haloeight on 2003-05-17 14:52:41
I'll try it out now. Check this out - I still get that issue with the prior plugin even when fb2k is not running and there's nothing in the tray.

(http://home.golden.net/~sandeepde/tbar4.jpg)

Does it matter if I use the ANSI or unicode version? Thanks SMF.
Title: foo_tbar problem
Post by: SMF007 on 2003-05-17 17:56:18
For XP, use the unicode version.  The code is the same as the ansi one, but internally it uses all unicode calls, so it's supposed to be faster.  The occasional left over writting has always been an issue even with the original winamp version.  It arises if the active window area were it is writting becomes an inactive area at the same time as it is writting the display.

Anyhow, if the new version doesn't solve the problem, I make a special debug version for you.
Title: foo_tbar problem
Post by: haloeight on 2003-05-18 03:39:48
SMF -

Using the unicode version it seems as though the problem is still there. I really appreciate your willingness to attend to this issue as well as the offer you just made. Thanks again.