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

[Not my release] foo_uie_panel_splitter

Reply #550
Somehow it is the target. Information like title, artist and album remain accessible. But you can't use commands from within PSS anymore unless you start playing again.


maybe you wanted to execute a CONTEXT command? Those are only executable when playing or paused...

[Not my release] foo_uie_panel_splitter

Reply #551
Maybe that's one reason, thanks. But that doesn't explain why the Menu Command "COMMAND:View/Columns playlist/Activate now playing" doesn't work as well when playback is stopped.

[Not my release] foo_uie_panel_splitter

Reply #552
"Activate now playing" should say all...

[Not my release] foo_uie_panel_splitter

Reply #553
LOL, true. 

[Not my release] foo_uie_panel_splitter

Reply #554
when playback is stopped, there is no playing track, so "Activate now playing" wont work.

[Not my release] foo_uie_panel_splitter

Reply #555
Now I use Shpeck with Milkdrop2 for vizualization. But it is quite CPU consuming, so I'm searching for a way to disable it when it's not focused. It might normally do that itself (not sure... does it?), but I use PSS as a Tab Stack replacement and so when I switch "tabs", Shpeck won't stop and still consume as much CPU as if it's running in the foreground. Its panel is just hidden with PSS, but everything is still running. This is great in a way, because you can switch seamlessly back without delay.

But I want to stop it. I found a context menu entry named "View/Visualizations/Shpeck/Stop". Now I wonder if PSS allows us to run commands without buttons. Is that possible yet? If not: feature request! 
So I could check with an $if() and run commands if needed.

[Not my release] foo_uie_panel_splitter

Reply #556
$drawtext always shows " 1 " whether I  press the textbutton or not...
Was it a bug?

It's not a bug I think.
I think you can only execute commands , not TF code, inside buttons.
Try this instead.
should work.

Code: [Select]
$init_ps_global(T,0)
$font(,12,)

$textbutton(0,0,20,20,A,A,SETGLOBAL:T:1;REFRESH,0-0-0,180-180-180)

$ifequal(%T%,1,$drawtext(1,0,20,20,20,0-0-0,),$drawtext(0,0,20,20,20,0-0-0,))

hope that helps 




Thanks neko mimi mode, this is really work.

In fact, I want to design a "input system", which I can input a string using with buttons
,and then foobar displays the string I had inputted.

[Not my release] foo_uie_panel_splitter

Reply #557
@royalknight

youre welcome and have fun with PSS

[Not my release] foo_uie_panel_splitter

Reply #558
(...)"create" your own tab stack in PSS:
Just place more panels at the same place and hide all panels except one as "hide on startup" or use global variables for show/hide a panel.

Simple Example:
Code: [Select]
$init_ps_global(panel,1)
$showpanel(Panel1,$ifequal(%panel%,1,1,0))
$showpanel(Panel2,$ifequal(%panel%,2,1,0))
$showpanel(Panel3,$ifequal(%panel%,3,1,0))
$showpanel(Panel4,$ifequal(%panel%,4,1,0))
(...)

Some of you might know this already, but I want to share my discovery:
If you do it the way above, you'll experience flickering (like you're used to from Columns UI anyways), but there's a way to completely avoid this:

Code: [Select]
// Show
$ifequal(%panel%,0,$showpanel(0,1),)
$ifequal(%panel%,1,$showpanel(1,1),)
$ifequal(%panel%,2,$showpanel(2,1),)
// Hide
$ifequal(%panel%,0,,$showpanel(0,0))
$ifequal(%panel%,1,,$showpanel(1,0))
$ifequal(%panel%,2,,$showpanel(2,0))


@tedgo: Thanks for showing me the example code. I've been able to replace Columns UI's Tab Stack. I doubt I'd figured it out this fast without help.

[Not my release] foo_uie_panel_splitter

Reply #559
I would like to know if it is possible to refresh a certain panel, wether it is hidden or not.

The Shpeck visualization component that I use does not refresh itself when I hide or show it. That means I always have to resize the foobar2000 main window to start it (after it has been shown), and to stop it (after it has been hidden).

So is there a workaround to tell panels to refresh? Even the ugliest hack would do.

[Not my release] foo_uie_panel_splitter

Reply #560
Hello,

I have 3 questions, I hope these things are possible.

1) I want to create buttons for volume up/down. What is the command? I tried 'Playback/Volume Up' but it didn't work.

2) Is it possible to make a button which clears actual playlist?
I got it: 'Edit/Clear'

3) Is it possible to make scrolling text (if the text is to long)?

Thank you!

[Not my release] foo_uie_panel_splitter

Reply #561
1) the command is COMMAND:Playback/Volume Up
I use this myself
so if it still does not work for you, then you've screwed up the code somewhere else

3) I think it could be achieved by making the position of string depend on playback time ( that means the track has to be playing)

hope that helps

[Not my release] foo_uie_panel_splitter

Reply #562
Maybe this is an option: I first check my text if it will fit into the available space (using %_width%) with $gettextwidth(). If the text is too long, text size is reduced.

[Not my release] foo_uie_panel_splitter

Reply #563
I'm still having trouble with Shpeck: There's a menu command called
Code: [Select]
View/Visualisations/Shpeck - Start 'MilkDrop 2.1 / MilkDrop 2.1'

but I can't start this with a Text Button. Is PSS having trouble with the ' characters or is it a problem of Shpeck?

[Not my release] foo_uie_panel_splitter

Reply #564
neko mimi mode
Thanks for the info. The volume buttons work now, I did something wrong, but don't know what.

According to the scrolling text: I know how to get width of the text. But how do I determine how many letters to crop and how do I setup the scrolling cycle? I coudn't find any cycle commands in foobar2000 scripting.

[Not my release] foo_uie_panel_splitter

Reply #565
Hi, I was told in another tread that Panel stack splitter would be able to give me a rating system a la Media Monkey with 5 stars (or other icon) but in HALF increments so I can do half stars. So basically 10 increments as opposed to the default 5. Anyone know how to do that?
I use Columns UI

[Not my release] foo_uie_panel_splitter

Reply #566
@durch
maybe you can try to single quote the whole command like this: command:'the command'

command:'View/Visualisations/Shpeck - Start 'MilkDrop 2.1 / MilkDrop 2.1''


@vlada
About the scrolling thing, what I said above is not very practical.
But if you really want it to auto scroll, thats the only way I can think of now.
If you want to display the whole string, you dont want to crop it.
Theres no dedicated cycle commands, and most cycles are done by simple modulo ( like alternating row color)

Just set the width to panel width and let the string move to left or right.
you can move it by making the X value depend on playback time.
you want it to come back to the beginning, so you want do a modulo on the playback time.

As you can see, theres some math to setup.
Alternatively, you can also try $left() or $right()  function.

OR 
you can try WSH. I think it will be a lot easier in WSH.

[Not my release] foo_uie_panel_splitter

Reply #567
command:'View/Visualisations/Shpeck - Start 'MilkDrop 2.1 / MilkDrop 2.1''

I already tried that, but it won't work either.

 

[Not my release] foo_uie_panel_splitter

Reply #568
Well,
let me post my work(not completed) 


[Not my release] foo_uie_panel_splitter

Reply #569
hey, wondering if could get a little help here,

im trying to add a button to my config to allow me to switch "Playback Follows Cursor" on & off as i often switch this during usage.
i can get the button to show without a problem & it does function, but i would like it to show a different button image so i know whether i have this enabled or not (ie, button "A" shows when command is enabled/Following, button "B" shows when disabled/not Following)

this is what i have so far, dont know if im on the right path with it but just going off whats already there with the installed theme:

Code: [Select]
$if($isvisible_c(Playback Follows Cursor),
                $imagebutton($add($get(buttons_x),184),$add($get(buttons_y),0),25,13,$get(foo_path)'images/'$get(config_name)'/bt/pback/prefs0x.png',$get(foo_path)'images/'$get(config_name)'/bt/pback/prefs1x.png',COMMAND:'Playback/Playback Follows Cursor';REFRESH,,)
,
                $imagebutton($add($get(buttons_x),184),$add($get(buttons_y),0),25,13,$get(foo_path)'images/'$get(config_name)'/bt/pback/prefs0.png',$get(foo_path)'images/'$get(config_name)'/bt/pback/prefs1.png',COMMAND:'Playback/Playback Follows Cursor';REFRESH,,)

)

if someone can point me in  the right correction or tell me if its even possible, please let me know.

thanks for your time


[Not my release] foo_uie_panel_splitter

Reply #571
Well,
let me post my work(not completed) 



Could you share the code?
I had an idea and I would like to see if your code could solve a problem for me.
<3 f00

[Not my release] foo_uie_panel_splitter

Reply #572
Could you share the code?
I had an idea and I would like to see if your code could solve a problem for me.

Well,
I write about 2000 lines to complete this simple action...
So,maybe it's a little bit hard to share the code. 

But,you can ask some questions ,and I will try to answer

[Not my release] foo_uie_panel_splitter

Reply #573
Could you share the code?
I had an idea and I would like to see if your code could solve a problem for me.

Well,
I write about 2000 lines to complete this simple action...
So,maybe it's a little bit hard to share the code. 

But,you can ask some questions ,and I will try to answer


Well, your picture gave me the idea to create a search panel
in which i don't need to type, but push the letter-buttons to create a word and than search.
Maybe, it's exactly that what you're making?
<3 f00

[Not my release] foo_uie_panel_splitter

Reply #574
Could you share the code?
I had an idea and I would like to see if your code could solve a problem for me.

Well,
I write about 2000 lines to complete this simple action...
So,maybe it's a little bit hard to share the code. 

But,you can ask some questions ,and I will try to answer


2000 lines for that ? It can be optimized for sure (near 50 lines...)

btw, what this is made for ? I have already think about this kind of system to let the user enter some parameters, but never found a real need ...


@R3v0 : and when string complete, how do you do to send the request to your search engine ??