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: [Not my release] foo_uie_panel_splitter (Read 408378 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] foo_uie_panel_splitter

Reply #250
After searching for a better way to display radio streams I stumbled upon this code:

Code: [Select]
$puts(station,%url%)

$if($strstr(%path%,'http://localhost:8008'),$puts(station,●●● RELAY STREAM 1 ●●●))
$if($strstr(%path%,'http://localhost:8009'),$puts(station,●●● RELAY STREAM 2 ●●●))
$if($strstr(%path%,'http://localhost:8010'),$puts(station,●●● RELAY STREAM 3 ●●●))
$if($strstr(%path%,'http://64.236.34.67/stream/1008'),$puts(station,SOMETHING WHAT YOU WANT))
$if($strstr(%path%,'http://205.188.215.229:8028'),$puts(station,SOMETHING WHAT YOU WANT 2))

$get(station)


It's supposed to show the stream url. In case of my favorite radio station it returns the url to the cover art. Is it even possible to display these covers in panel splitter? I'm having problems with the dynamic path.

[Not my release] foo_uie_panel_splitter

Reply #251
qwertz: The problem is that you need to use $drawtext() to display the text and not just $get(station).

Try something like this:
Code: [Select]
$puts(station,%url%)

$if($strstr(%path%,'http://localhost:8008'),$puts(station,●●● RELAY STREAM 1 ●●●))
$if($strstr(%path%,'http://localhost:8009'),$puts(station,●●● RELAY STREAM 2 ●●●))
$if($strstr(%path%,'http://localhost:8010'),$puts(station,●●● RELAY STREAM 3 ●●●))
$if($strstr(%path%,'http://64.236.34.67/stream/1008'),$puts(station,SOMETHING WHAT YOU WANT))
$if($strstr(%path%,'http://205.188.215.229:8028'),$puts(station,SOMETHING WHAT YOU WANT 2))

$drawtext($get(station),,,,,,)
On another note, if you want to display the name of the currently playing radio station you can reference %title% in the PerTrack code (NOT the Per Second code). By using %title% under PerTrack and then %title% under PerSecond I am able to work with both the station name and the track name. If you use $drawtext() properly then the end result is rather transparent.
---
EDIT: Are you trying to display the url to the radio station or a rendered picture of the cover art?  If the %url% is returning an image address try moving it to PerTrack instead of PerSecond.

[Not my release] foo_uie_panel_splitter

Reply #252
qwertz: The problem is that you need to use $drawtext() to display the text and not just $get(station).

Try something like this:
Code: [Select]
$puts(station,%url%)

$if($strstr(%path%,'http://localhost:8008'),$puts(station,●●● RELAY STREAM 1 ●●●))
$if($strstr(%path%,'http://localhost:8009'),$puts(station,●●● RELAY STREAM 2 ●●●))
$if($strstr(%path%,'http://localhost:8010'),$puts(station,●●● RELAY STREAM 3 ●●●))
$if($strstr(%path%,'http://64.236.34.67/stream/1008'),$puts(station,SOMETHING WHAT YOU WANT))
$if($strstr(%path%,'http://205.188.215.229:8028'),$puts(station,SOMETHING WHAT YOU WANT 2))

$drawtext($get(station),,,,,,)
On another note, if you want to display the name of the currently playing radio station you can reference %title% in the PerTrack code (NOT the Per Second code). By using %title% under PerTrack and then %title% under PerSecond I am able to work with both the station name and the track name. If you use $drawtext() properly then the end result is rather transparent.

Oh, I figured out how to display the text, but the returned url was the path to the online cover art. It looks like http://www.radioparadise.com/graphics/cove.../B000001XQZ.jpg. How I display that cover, with its dynamic path though, is a little beyond me.

[Not my release] foo_uie_panel_splitter

Reply #253
qwertz: Well theoretically something like this should work:
Code: [Select]
$drawimage(0,0,100,100,%url%,,,)


But it did not work in all my tests. I even tried using $drawimage() with a hardcoded known-valid url for a source. It appears this component does not support URL's for image path.

[Not my release] foo_uie_panel_splitter

Reply #254
Yotsuya thanks for trying. I just noticed that the station has all images in the same directory, so if I'd download them all to a local folder, foobar should be able to display the covers. Do you have an idea what the code would be for the filename only?

[Not my release] foo_uie_panel_splitter

Reply #255
qwertz: This gets a bit complicated, I'll try to break it up a bit so you can see what is going on:
Code: [Select]
$puts(path,'x:\local\path\to\images\')
$puts(image,$substr(%url%,$add($strrchr(%url%,$char(47)),1),$len(%url%)))
$drawimage(0,0,100,100,$get(path)$get(image),,,)

[Not my release] foo_uie_panel_splitter

Reply #256
Heh, yeah you can say that 

Thank you very much Yotsuya, I will try.

[Not my release] foo_uie_panel_splitter

Reply #257
Yotsuya you're great, it works, thank you 

[Not my release] foo_uie_panel_splitter

Reply #258
New version foo_uie_panel_splitter

Panel Stack Splitter   v 0.3.6.3 a   2009/03/06

A little, for ColumnsUI Splitter which aims toward the fact that it can do the setting whose degree of freedom is high
First you had aimed toward simpler ones, but non plan with expansion setting becoming [hidoi] thing, it increases.
Rewriting the source, it increased, but it collapsed.

changelog:
The intention of correcting the fact that it has the command which it cannot execute. (Someone please verify)
Correcting the fact that it remains the mouse goes outside the panel when the button as hover state.
The %ps_foobar2000_path% addition which acquires executable file pass.

[Not my release] foo_uie_panel_splitter

Reply #259
Finally!
The mousehover images are displayed correctly now.

But buttons are flickering way more than before...
And the annoying bugs with loading images are present like before (like: on starting foobar2000 with a blank playlist PSS refuses to load images).
I hope this will be fixed soon.

EDIT:
How does %ps_foobar2000_path% work?
I tried it with getting images but that displays nothing...

Using relative paths still causes not loaded images when playing or enqueing a file from windows explorer... 

EDIT2:
Can someone elsewhere upload a translation of the actual readme?

[Not my release] foo_uie_panel_splitter

Reply #260
well the %ps_foobar2000_path% returns the full path to the panel splitter dll file

not really helpful  I thought it was for command line tools like rating, but it doesn't work

[Not my release] foo_uie_panel_splitter

Reply #261
EDIT:
How does %ps_foobar2000_path% work?
I tried it with getting images but that displays nothing...


i tried $drawtext(%ps_foobar2000_path%,....)
seems like it gives you the path to foo_uie_panel_splitter.dll
so if you want foobar path, use $replace(%ps_foobar2000_path%,components\foo_uie_panel_splitter.dll,)

edit: seems like i am to slow

[Not my release] foo_uie_panel_splitter

Reply #262
well the %ps_foobar2000_path% returns the full path to the panel splitter dll file

Its senseless...
Or do i miss something that it is useful for?
So i'll stay on foo_exvar to call the foobar path

[Not my release] foo_uie_panel_splitter

Reply #263
$left(%ps_foobar2000_path%,$sub($strstr(%ps_foobar2000_path%,'components'),1))

[Not my release] foo_uie_panel_splitter

Reply #264
lovely...
But i'll stick on foo_exvar to call the foobar path (%foobar_path%)
...and wait for the next release

[Not my release] foo_uie_panel_splitter

Reply #265
Okay, i got a workaround for not loading images.

Since the foobar path (%foobar_path%) provided by Extended Variables (foo_exvar) refuses to load images when foobar2000 starts with a blank playlist and Panel Stack Splitter refuses to load images when using relative paths and starting foobar2000 from Windows Explorer ("play in foobar2000" or "enqueue in foobar2000"), i used the $replace(%ps_foobar2000_path%,components\foo_uie_panel_splitter.dll,) suggested by SardonicWrath for the image paths.

It seems that it fixes the loading images problems above (although it would be more logical and useful if the %ps_foobar2000_path% would call the path of the foobar2000.exe instead of addresing to the foo_panel_splitter.dll...)

But Panel Stack Splitter refuses to load images or $draw...() functions randomly sometimes on startup or loading a *.fcl...
Has anyone got a solution for this too?


[Not my release] foo_uie_panel_splitter

Reply #267
Wow, thanks!
I couldn't do it so, because i got only this:
Quote
Columns UI—pƒpƒlƒ‹‚ð”z’u‚·‚邽‚ß‚Ìsplitter
ƒ{[ƒ_[‚È‚µ‚âAƒpƒlƒ‹‚ðd‚Ë‚½‚è‚ȂǏ­‚µ‚ÍŽ©—R“x‚̍‚‚¢Ý’肪o—ˆ‚éB
‚¢‚¢‰ÁŒ¸ˆÀ’肵‚Ä‚«‚½‚©H
...

when trying to open the txt-file in the editor.
Although i installed all asian fonts windows xp provides...

EDIT:
Hm, the translation claims %ps_foobar2000_path% as foobar2000 executable path.
So, the fact it directs to the foo_uie_panel_splitter.dll instead is a bug?

 

[Not my release] foo_uie_panel_splitter

Reply #268
yeah; I was wondering myself

maybe the developer didn't realize it as a bug


//Question
is it possible to move a panel in a Command?
something like PANELSHOW: only PANELMOVE:

[Not my release] foo_uie_panel_splitter

Reply #269
//Question
is it possible to move a panel in a Command?
something like PANELSHOW: only PANELMOVE:

Not to my knowledge.
But if you have a button to show a specified panel, for instance "Album list panel", and wants to move another panel, for instance ELPlaylist, only when "Album list" is visible, you could call a $movepanel_c() function in an $if() function:

$if($isvisible_c(Album list panel),
$movepanel_c(ELPlaylist,0,0,$sub(%ps_width%,200),%ps_height%),
$movepanel_c(ELPlaylist,0,0,%ps_width%,%ps_height%))

[Not my release] foo_uie_panel_splitter

Reply #270
For the past half hour I tried to get a button with a foo_run command to work. I tried everything I could think of, like CONTEXT: COMMAND: with or without /run, /run service, but still no go. It works fine with track info mod. Has anybody an idea?

[Not my release] foo_uie_panel_splitter

Reply #271
It is a known "issue" in PSS.
Foo run commands doesn't work here, the same goes for ratings (tags or database).
You'll have to stick on trackinfo mod for this purpose...

[Not my release] foo_uie_panel_splitter

Reply #272
Danke,

thats the first time I really try to make a skin with this splitter
its quite powerful, but it will needs a lot more options
like:
@developter
$resizewindow()
TAG:RATING:

the option $showpanel, does it change the status of a panel permanently even after a restart?

[Not my release] foo_uie_panel_splitter

Reply #273
Heh, thanks, good that I asked, it was driving me crazy.

[Not my release] foo_uie_panel_splitter

Reply #274
Resize window is already there as a button option (e. g. WINDOWSIZE:600:400).

$showpanel doesn't change the status permanently.

But you could do it like i did:
Insert a tabbed panel stack mod (foo_uie_tabs) in a PSS (you can hide the tabs and switch them with buttons).
Other than in PSS there is no need to hide some panels by default. So the last opened panel before closing foobar will be open on startup again.