Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Track Info Panel with ability to change font (Read 729144 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Track Info Panel with ability to change font

Reply #625
Wow. That does seem to be a bug indeed. I started foobar via clicking an associated media file as you described and the same happened to me. None of the buttons in my track info mod configuration appear, except for the pause button (for whatever reason). Here's my code with the pause button. Maybe it will help shed some clues for the developer.

Code: [Select]
// VARIABLES //
$puts(dir,'images\buttons\ifoo\')

// PREVIOUS BUTTON //
$button(0,0,0,0,33,35,$get(dir)prev.png,$get(dir)prev2.png,Previous,)

// PLAY-PAUSE BUTTON //
$if($and(%isplaying%,$not(%ispaused%)),
// Show pause button...
$button(36,0,0,0,35,37,$get(dir)pause.png,$get(dir)pause2.png,Play or pause,),
// Show play button...
$button(36,0,0,0,35,37,$get(dir)play.png,$get(dir)play2.png,Play or pause,))

// NEXT BUTTON //
$button(76,0,0,0,33,35,$get(dir)next.png,$get(dir)next2.png,Next,)

Track Info Panel with ability to change font

Reply #626
Good thing to know that I'm not the only one experiencing this... although I'm a little surprised to be the first one to notice/report it. 

Track Info Panel with ability to change font

Reply #627
I have noticed what may be a bug. Leading spaces are not always respected.


use a non-breaking space if you want leading spaces.

I think I found a bug. It has been mention a few times in the thread, but no one seams to know a way out.
My buttons won't show unless I start foobar "manually" (with shortcut or executable directly). If it starts from a executed media file or with the media key on my keyboard, no buttons show. The strange thing is as soon as I manage to apply changes in the configuration without even modifing the code (I simply press a key, erase it and press apply), buttons appear.

* I'm on Windows XP SP2 french,
* foobar2000 0.9.4.2 (it happens with 0.9.4.1 too) fresh installation (the only configuration that has been done was adding trackinfo_mod panel in the layout)
* Only stock components plus ColumnUI, trackinfo mod, single column - all latest version,
* MS Visual C++ 2005 Runtime Library.

Here is my (pretty basic) code:
Code: [Select]
$button(764,4,0,0,42,21,images\pref.png,images\pref_h.png,Preferences,)


try using an absolute path.

Track Info Panel with ability to change font

Reply #628
Great it works, thanks.

Track Info Panel with ability to change font

Reply #629
terrestrial, are you going to add the nokeepaspect option to image functions in this, like in the single column playlist?

Track Info Panel with ability to change font

Reply #630
try using an absolute path.


First of all, thank you for the wonderful plugin.
Second, IMHO, using absolute path is not a good solution. It may be even unacceptable for some people. I've also noticed this bug some time ago using Foobar at home. But the strange thing is that at work I'm not experiencing this behaviour. Both Foobars are in the same directory using the same settings without user's profile thing (e.g. all the files are in the same directory at c:\progs\foobar2000 ). It has to be something else. Some difference in parameters of Windows' file assosiation or maybe something else in registry (for example, I've installed new versions of Foobar in other directories for the purpose of upgrading, 'cause merely unpacking the installation .exe with 7z had not worked for me as expected. I've properly removed these temporary installations, but have not checked the registry). Maybe if I do have time, I'll check this thoroughly.

Also, could somebody give me a good tip, please, how to maintain my two configs of Foobar depending on the screen resolution (1280*1024 at home and 1600*1200 at work) with minimal user interference. Perhaps I must use  a variable with resolution in the track info panel and base all the calculations of buttons places as offsets or something. Thanks

Track Info Panel with ability to change font

Reply #631
Is there a way to make part of the info update every second and other part (a rectangle) update every 20 secs?
I'm trying to reproduce the behaviour of a screensarver and I thought of using two vars (offsex,offsety) set by a rand() function every 20 seconds of playing time but I don't know how to keep the setting of the vars when the if criteria in sont matched:

Code: [Select]
$if($greater($mod(%playback_time_seconds%,20),18),$puts(offsetx,$mod($mul($rand(),1000),280)),$puts(offsetx,$get(offsetx)))
$if($greater($mod(%playback_time_seconds%,20),18),$puts(offsety,$mod($mul($rand(),1000),350)),$puts(offsetx,$get(offsety)))
$drawrect($add(0,$get(offsetx)),$add($get(offsety)),1000,160,pencolor-0-128-255 brushcolor-null width-1)

This doesn't seem to work. The rectangle moves to a new position once every 20 secs but the next second it goes back to 0,0 origin.

Any help, please?

Thanks.

Track Info Panel with ability to change font

Reply #632
terrestrial, you've done a great job! Thank you!
But, while configuring the panel, I'vegot stuck into something:
$imageabs2 doesn't seem to accept long paths for images. For example I have a picture with an 81 characters path (including spaces and filename) that doesn't apear on the panel but when I copy it in the root directory it's ok.
The problem is that I'm trying to put albumarts and the pictures are in albums' folders which, after sorting, went 4 levels below root directory.
Any idea what's the problem? I'm gonna have to rearange my library in order to work with foo_trackinfo_mod?


PS: I haven't tryied to find from which path lenght the problem occurs, but I think it's 64.

Edit: After a few minutes I've found the problem and it's not the lenght of the path but the ( and [ inside it. With the path put within apostrophes it works.
Sorry for posting.

Track Info Panel with ability to change font

Reply #633
nevermind


Track Info Panel with ability to change font

Reply #635
Can we draw rectangles with rounded corners?

and...

let me a little bumping about this:

Is there a way to update a couple of vars (offsetx and offsety) only once in a time (say 20 secs) and let them keep their last value till the next update?
I'm trying to reproduce the behaviour of a screensaver, mooving info randomly around every 20 secs.

Thanks.


Track Info Panel with ability to change font

Reply #637
[a href="http://img133.imageshack.us/my.php?image=fb2kct1.jpg" target="_blank"]

Can somebody help me with coding Track Info ? How to get scrolling Artist and Title ? My current code is
Code: [Select]
$alignabs(15,15,%_width%,%_height%,center,top)
$font(calibri,24,glow-255-0-0 glowexpand-2 glowblur-4 blur-2,255-255-255)
$caps2([%artist% - ][%title%])$alignset()


And is any way to convert progressbar to seekbar ? (press on center of progressbar and song jumps to center)
Code: [Select]
$puts(directory,G:\Programos\foobar2000\)
$puts(progressblength,630)
//// Progress Bar
//////////////////////////////////////
$if(%isplaying%,
$puts(percent,$muldiv(%_time_elapsed_seconds%,$get(progressblength),%_time_total_seconds%))
$puts(progress,$muldiv($get(percent),1000,1000))
$if($greater($get(percent),0),
$drawrect(15,55,$get(progress),1,brushcolor-110-149-255 pencolor-null)
$drawrect(15,56,$get(progress),1,brushcolor-40-70-154 pencolor-null)
$drawrect(15,57,$get(progress),1,brushcolor-97-121-190 pencolor-null)))
$ifgreater($get(progress),14,$imageabs($get(progress),55,images/pb.png,),)


Sorry for bad English   

 

Track Info Panel with ability to change font

Reply #638
Can we draw rectangles with rounded corners?
Can already be done using images. And if you use a 24-bit .png with transparency, the corners can even be anti-aliased.

and...

let me a little bumping about this:

Is there a way to update a couple of vars (offsetx and offsety) only once in a time (say 20 secs) and let them keep their last value till the next update?
I'm trying to reproduce the behaviour of a screensaver, mooving info randomly around every 20 secs.
Thanks.
Can already be done using $mod() and either %playback_time_seconds% or %cwb_systemdatetime%

checkout my config for an example.
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #639
Is there a way to update a couple of vars (offsetx and offsety) only once in a time (say 20 secs) and let them keep their last value till the next update?
I'm trying to reproduce the behaviour of a screensaver, mooving info randomly around every 20 secs.
Thanks.
Can already be done using $mod() and either %playback_time_seconds% or %cwb_systemdatetime%

What he's looking for is a way to change a variable value every 20 seconds and keep this value between the intervals. Using $mod can trigger a fonction ($rand in this case) and put it in a variable for 1 second only. The other 19 seconds, either the variable will equal 0 or it will constantly call a new random number. AFAIK calling $rand fonction and keep it in memory for a certain amount of time is currently not possible.

Track Info Panel with ability to change font

Reply #640
Psudeo-random would be less than satisfactory I'm asumming?
If you worked with %playback_time_remaining seconds% psudeo-random would be even less noticable.
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #641
Is there a way to update a couple of vars (offsetx and offsety) only once in a time (say 20 secs) and let them keep their last value till the next update?
I'm trying to reproduce the behaviour of a screensaver, mooving info randomly around every 20 secs.
Thanks.
Can already be done using $mod() and either %playback_time_seconds% or %cwb_systemdatetime%

What he's looking for is a way to change a variable value every 20 seconds and keep this value between the intervals. Using $mod can trigger a fonction ($rand in this case) and put it in a variable for 1 second only. The other 19 seconds, either the variable will equal 0 or it will constantly call a new random number.

Yes.

Now, I will try to use some track characteristics (length, lenght+title length or any other combination of tag values) after the needed normalization, to create a "fake random" value and keep the info block in the same position for the whole song.
Maybe some statistics expert will come up saying it's not the best way to evenly distribute points on an xy plane but, on a screensaver point of view, I think it can be enough.
No?

Track Info Panel with ability to change font

Reply #642
updated. there are a couple more changes than noted in the changelog because I forgot what they were 

Track Info Panel with ability to change font

Reply #643
Quote
+ mode changes through the context menu instead of double click

Brilliant! Thanks terrestrial

Track Info Panel with ability to change font

Reply #644
Thanks for the update,this component keeps getting better and better!I've noticed that ow it updates emidiatly
on event,and not once per second.For example volume changes show up right away.
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #645
Does this plugin support $meta(x,y)?

Thanks.


Track Info Panel with ability to change font

Reply #647
Is there a way to show a working clock even when nothing is playing?

If yes, linked to which variable?

I tried with %cwb_systemdatetime% but I see it only while playing.

Thanks.

Track Info Panel with ability to change font

Reply #648
Quote
updated. there are a couple more changes than noted in the changelog because I forgot what they were


CPU usage: previosly was 6-7 %, but now - 10-12%

Track Info Panel with ability to change font

Reply #649
This latest release causes my foobar to explode, consuming all the resources it can grab and making my system unresponsive for several minutes before I can finally kill the process and return to normality. This happens during the initial foobar loading so there is little I can do to narrow down the problem other than remove the component.

Request: Would you consider continuing to host the last known stable release of your component on your download page in addition to any recent releases so that those of us who forgot to backup their component or configuration can roll back when things like this happen?