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 408415 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] foo_uie_panel_splitter

Reply #676
Hi,

When I set a global parameter in a PSS with the refresh option, does it work with child PSS ? (I think the question was asked before by durch, but I did not see an answer on that point)


Thanks,
Leo


[Not my release] foo_uie_panel_splitter

Reply #678
Does anyone know of a way to execute commands involving a colon ":" ?

I've got this:
Code: [Select]
COMMAND:'Library/Playlist Tree Mod/Refresh/tree 0: Related with now playing'

I've tried every possible way I could think of but in the end I had to resort to foo_run and creating a service for the commandline.

It also works in a Track info mod panel but that's really no option for what I have in mind.

Thanks

Levi

[Not my release] foo_uie_panel_splitter

Reply #679
Does anyone know of a way to execute commands involving a colon ":" ?


or a semicolon? ;
i can't find a way to escape it. either using \ or quoting it with " or ' is useless

my purpose is to set multiple tags on a field. this is the script i came up with:

SETTAG:MOOD:[%MOOD%, ]tag;REFRESH;

but the comma won't work as a separator. so i need to replace it with a semicolon


PS: $char(59) doesn't work either, as it seems to be evaluated as a simple semicolon part of the instruction.

[Not my release] foo_uie_panel_splitter

Reply #680
is there yet a function to refresh all panels?

i would need it for creating menus, using global vars to close them

for the moment i just add COMMAND:Playback/Pause;COMMAND:Playback/Play
works fine, i don't hear a pause, but:
if currently no track is playing it of course starts playing...

since the menu needs to be in "follow cursor" mode, %isplaying% is of no use...

[Not my release] foo_uie_panel_splitter

Reply #681
does anyone see a way to provoke a PS command from a wsh panel?
I would like to have a wsh button to provoke a change in my panel splitter config.

Thanks

[Not my release] foo_uie_panel_splitter

Reply #682
does anyone see a way to provoke a PS command from a wsh panel?
I would like to have a wsh button to provoke a change in my panel splitter config.

Thanks


in WSH, create an empty file just to put a value to send to PSS ==> example of filename (no extension required) to send the value 1 to PSS for an action in PSS : hide_lyrics_1

then in PSS, get this value with $findfile() function, just put in parameter the begin of the filename : $findfile($get(my_work_directory_path)/hide_lyrics_*) , it will grab the whole filename for you, and so, you'll be able to get the value send from WSH by using text formatting functions ($right(), $mid(), $left() ...), here : 1

HTH


[Not my release] foo_uie_panel_splitter

Reply #683
does anyone see a way to provoke a PS command from a wsh panel?
I would like to have a wsh button to provoke a change in my panel splitter config.

Thanks


in WSH, create an empty file just to put a value to send to PSS ==> example of filename (no extension required) to send the value 1 to PSS for an action in PSS : hide_lyrics_1

then in PSS, get this value with $findfile() function, just put in parameter the begin of the filename : $findfile($get(my_work_directory_path)/hide_lyrics_*) , it will grab the whole filename for you, and so, you'll be able to get the value send from WSH by using text formatting functions ($right(), $mid(), $left() ...), here : 1

HTH

ok but when i press the button that create the file, it wont immediately provoke the pss refresh? Or do you mean that i should put the findfile in the per-second section?

 

[Not my release] foo_uie_panel_splitter

Reply #684
...sorry, i haven't explain the 'refresh' part

i do a refresh in WSH when i click the button too, here is the refresh function i've coded in PSS that enforce a refresh in PSS

Code: [Select]
function RefreshBG() {
    if (fb.IsPlaying || fb.IsPaused) {
        fb.RunMainMenuCommand("Playback/Play or Pause");
        fb.RunMainMenuCommand("Playback/Play or Pause");
    }
    else {
        fb.RunMainMenuCommand("Playback/Play");
        fb.RunMainMenuCommand("Playback/Stop");
    }
}

[Not my release] foo_uie_panel_splitter

Reply #685
...sorry, i haven't explain the 'refresh' part

i do a refresh in WSH when i click the button too, here is the refresh function i've coded in PSS that enforce a refresh in PSS

Code: [Select]
function RefreshBG() {
    if (fb.IsPlaying || fb.IsPaused) {
        fb.RunMainMenuCommand("Playback/Play or Pause");
        fb.RunMainMenuCommand("Playback/Play or Pause");
    }
    else {
        fb.RunMainMenuCommand("Playback/Play");
        fb.RunMainMenuCommand("Playback/Stop");
    }
}
But do you hear the play/pause thingy?
Seeing what you do may be it would be a good thing to a menu command to refresh PSS? what do you think ssena?



[Not my release] foo_uie_panel_splitter

Reply #688
@ssenna
May i request support for the new artreader settings introduced in foobar2000 v1.0?
So there's no need for foo_covers then

And as i've seen that your biography view panel colours and fonts can be set up through the Columns UI "Colours and Fonts" preferences page it would be great if you could make it possible for PSS, too.
Would make it more easy to change the global colour scheme of a configuration.

Thanks.

[Not my release] foo_uie_panel_splitter

Reply #689
And as i've seen that your biography view panel colours and fonts can be set up through the Columns UI "Colours and Fonts" preferences page it would be great if you could make it possible for PSS, too.
Would make it more easy to change the global colour scheme of a configuration.


+1

[Not my release] foo_uie_panel_splitter

Reply #690
@ Ssenna: Is there a way to force a refresh by a command line (together with e.g. run_cmd) ?

I would need it to update the foobar interface after I sent some playback order command with foo_httpcontrol...

(unfortunately changing playback order does not automatically invoke a refresh at PSS, like the other commands do)

[Not my release] foo_uie_panel_splitter

Reply #691
@ssenna: i have a problem with the persecond section
this is my code
Code: [Select]
$puts(timepos,$el_scale($sub(%_width%,95), %playback_time_seconds%,%length_seconds%))
$drawtext($get(timepos),0,0,50,50,0-0-0,)
$drawthemerect(27,$sub(%_height%,19),$get(timepos),12,progress,5,0)

The text is redrawn correctly every second but not the drawthemerect. The only way to refresh it is to do splitters settings and ok.
Appears like a bug

[Not my release] foo_uie_panel_splitter

Reply #692
your code works fine for me.

[Not my release] foo_uie_panel_splitter

Reply #693
your code works fine for me.

Thanks for your reply. You made me find the problem, but  still dont understand.
The problem is that i have a pseudo transparent WSH Panel mod just over it.
As we cant draw themerect in wsh i tried to draw in pss and use the wsh panel mod for mouse interaction.
The problem is that with wsh panel mod, the pss rec under is not redrawn every second. I have the problem with multiple panels. Maybe it s a "pseudo transparent" problem.
I am not sure yet

[Not my release] foo_uie_panel_splitter

Reply #694
i guess thats why it is called "pseudo"transparent.
I noticed similar behavior with the biography panel. It seems to me that only once on initialisation of the pseudotransparent panel the background is checked and kinda used as the panels own background. Therefore you can't have moving or changing stuff (eg. a spectrum analyser) behind a pseudtranparent panel.

[Not my release] foo_uie_panel_splitter

Reply #695
i guess thats why it is called "pseudo"transparent.
I noticed similar behavior with the biography panel. It seems to me that only once on initialisation of the pseudotransparent panel the background is checked and kinda used as the panels own background. Therefore you can't have moving or changing stuff (eg. a spectrum analyser) behind a pseudtranparent panel.

Seems like a good explanation. Will have to find another solution

[Not my release] foo_uie_panel_splitter

Reply #696
Sorry to bring up an old problem, but I was wondering if anyone had a way of displaying a different imagebutton when clicked (not mouseover)?

ie.  becomes

[Not my release] foo_uie_panel_splitter

Reply #697
Sorry to bring up an old problem, but I was wondering if anyone had a way of displaying a different imagebutton when clicked (not mouseover)?

ie.  becomes


Sure, you could fake it. Have the image button resize or move on top of itself an image and empty textbutton. You can even draw a custom clicked button border with $drawroundrect() or something.

[Not my release] foo_uie_panel_splitter

Reply #698
Thanks unclean, got the right idea of how to go about it now.

[Not my release] foo_uie_panel_splitter

Reply #699
shurely a stupid question (and sorry for already answered somewhere else):

how can I use the patterns defined in the artwork-tab for the imageabs-path?

instead of e.g.
$imageabs(62,46,$get(aaWidth),$get(aaWidth),$replace(%path%,%filename_ext%,)cover.jpg,nokeepaspect,,)

... and all it´s variations in the script?