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: How 2 change status bar font color during playing? (Read 4369 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How 2 change status bar font color during playing?

i had try the function $add(400080,%_time_elapsed_seconds%),but the function seems to support dec only....
not supprot hex color code....how to change color?

How 2 change status bar font color during playing?

Reply #1
Quote
i had try the function $add(400080,%_time_elapsed_seconds%),but the function seems to support dec only....
not supprot hex color code....how to change color?


If you're trying to make the color of the time_elapsed_seconds dark blue, do this:

Quote
400080%_time_elapsed_seconds%


You might also want to look at the Help in the title formatting section
Master of Fate. By Fate Mastered

How 2 change status bar font color during playing?

Reply #2
hehe...I mean change the color of the chars in status bar while playing....
dynamicly change the color,not staticly...hehe...

How 2 change status bar font color during playing?

Reply #3
this is my poor code for status bar........
Quote
$upper($ext(%_path%))@[0080FF%__bitrate%K]@[FF8000%__samplerate%Hz]@$if2(FF0000%__extrainfo%,404080CBR)000000    345FDC'{'$progress(%_time_elapsed_seconds%,%_time_total_seconds%,20,'8000FFBT000000','345FDCbt')'}           '400080%_time_elapsed% 

How 2 change status bar font color during playing?

Reply #4
o..i found a function like this :
Quote
$rgb(a,b,c)

may be useful........
coding....

How 2 change status bar font color during playing?

Reply #5
this one can work......
Quote
'$rgb(%_time_elapsed_seconds%,150,190)%_time_elapsed% 


but this one can only be used to play back a song shorter than 4:15(255s).....
need some logical judgement.....

How 2 change status bar font color during playing?

Reply #6
haha...this code support up to 7:40! YEEP!!!!!!!!!!!!!!!
Quote
'$rgb($ifgreater(%_time_elapsed_seconds%,255,255,%_time_elapsed_seconds%),$ifgreater(%_time_elapsed_seconds%,255,$ifgreater($sub(%_time_elapsed_seconds%,205),255,255,$sub(%_time_elapsed_seconds%,205)),50),190)%_time_elapsed%

How 2 change status bar font color during playing?

Reply #7
You need to do something like  colour= (current_time/(total_time/256))  but after a quick attack at it (being new to foobar scripting) it looks like the maths functions don't handle decimal places  so there are errors creeping in.  If anyone knows how to get it to handle propper float values then that would fix the range nicely.

Quick example for black-white fade in easy(ish) to read 5 seconds to write code heh  but as I say, with the rounding errors you can get a 0.9999999999 discrepancy.

$puts(colz,$div(%_time_total_seconds%,256))
$puts(colz2,$div(%_time_elapsed_seconds%,$get(colz)))
$rgb($get(colz2),$get(colz2),$get(colz2))

You can do pretty much what u want with the colz2 value rather than simple black to white fade.

How 2 change status bar font color during playing?

Reply #8
Does anybody even RTFM?

Quote
$blend(a,b,c,d) - generates a color in c/d between colors a and b