Help - Search - Members - Calendar
Full Version: Replaygain Button?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Keikonium
I posted for help in the track info mod help thread (here), but haven't received any replies, so I thought I'd ask in a seperate topic.

I'm having problem with some code I have here:

CODE
//REPLAY GAIN//
$puts(rpg,
$if(%__replaygain_track_gain%,   TGain: $rgb(77,122,172)$cut(%__replaygain_track_gain%,5)' dB',$rgb(78,78,78)       '['$button2(300,1,0,0,150,16,'$font(tahoma,8,underline,61-131-182)No TGain','$font(tahoma,8,underline italics,120-145-209)No TGain',Scan Per-file Track Gain,)']'))
$alignabs(400,1,95,16,,)
$get(rpg)
//REPLAY GAIN//



What it's supposed to do is display the replaygain info, which it does when the file HAS some. But if it DOESN'T have any, its supposed to display a [ bracket, then a button I click (text) that will scan the file, then a closing ] bracket.

I'm not sure what I screwed up here in the code sad.gif. A little help?
jonpb
I'm no expert in Titleformatting, but I attempted a guess in the original 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.