Thank you so much 'WilB', I installed wsh panel mod for xp from this site: https://sites.google.com/site/jk7800/foobar2000works perfectly,now I don't have problem with letters transparency, also foobar still can be transparent if I select this in columns ui preference

I add an image button to my config but it doesn't work at all. It should active one of the DSP settings. Can anyone tell me what's wrong? (When I add a keyborad shortcut for it, the keyboard shortcut works) Here's the code:

Such a command doesn't appear to exist. To see available commands see the PSS menu and context command list or keyboard shortcuts list - its not listed on my set up but may be you have another component that provides it. There is just Playback/DSP settings on my set up.

sry for the newbe question, but is there a command for changing the active playlist?

what i wanna do is to separate my library from my playing playlists. however i want to use the esPlaylist for the library, i need to have it following the active playlist, which should be 'filtered results' in order to get the CIU filter panels to work with the esPlaylist. so when pushing a button to go to the library the active playlist should be switched to the 'filtered results' playlist the CUI filter is working on. when going back to the now playing view, the script should switch to the one playing a song or to the last one viewed before entering the library!!!

to anyone wondering what exactly this is, I checked on the russian forums.Its a small modification of the settings dialog. Everthing else stays the same.From what I got, the size is changed and there i a different font in the script tab.

Thanks! Makes working with PPS a bit less a pain in the ass

QUOTE (Elevory @ Oct 20 2012, 21:44)

Is it possible to specify a background image location using a variable like %APPDATA%? This would allow me to distribute my theme without expecting users to manually change the location of this file.

Didn't try it, but you probably did that yourself... if it didn't work, there is your answer

I suggest you just draw the background image with imageabs(0,0,%_width%,%_height%,%themepath%background.jpg).

You can either set the path manually with $set_ps_global(themepath,'[your path]'), or use %ps_foobar2000_path%(path of foobar2000.exe) or %ps_user_profile_path% (user profile path.)

I'm not sure if my question is just nonsense, but since nobody gave me some advice i'll just ask again:

Is there a way for me switching to a certain playlist (not just "View/Columns playlist/Activate now playing") when pushing a button? Can i somehow implement such a functionality?

Thank you

no way in PSS, but you can do it with WSH Panel Mod (jscript). With PSS, just set your wsh panel where you want, the panel fit the button size and you can also add it in the CUI toolbar... you can ask help about a such panel in the WSH Panel Mod discussion thread in 3rd party components.

Is there a way to move the same panel using two buttons? I have two buttons, both move the same panel but to different positions. Or is there a way to make one button do three different things so it can be clicked three times?

rather than use PANELSHOW, i'd use global variables to save 3 different "states". each button click would cycle through them.

CODE

//sets state to 1 on first run. after that, the stored setting will be used.$init_ps_global(state,1)

//note you don't need $get_ps_global, you can just wrap the variables in %% to access them. make sure they don't conflict with any tags/special fields that are in use.$select(%state%,//code here to show/hide/move panels if value is 1,//code here for 2,//code here for 3 etc)

then in your button use this

CODE

SETGLOBAL:$select(%state%,2,3,1);REFRESH;

if the value of state is current 1, set it to 2.if value is 2, set it to 3if value is 3, set it back to 1 again.

rather than use PANELSHOW, i'd use global variables to save 3 different "states". each button click would cycle through them.

CODE

//sets state to 1 on first run. after that, the stored setting will be used.$init_ps_global(state,1)

//note you don't need $get_ps_global, you can just wrap the variables in %% to access them. make sure they don't conflict with any tags/special fields that are in use.$select(%state%,//code here to show/hide/move panels if value is 1,//code here for 2,//code here for 3 etc)

then in your button use this

CODE

SETGLOBAL:$select(%state%,2,3,1);REFRESH;

if the value of state is current 1, set it to 2.if value is 2, set it to 3if value is 3, set it back to 1 again.

Hey there community! I hope I post in the right thread since I am new to this forum (in fact I just registered because of my question) I recently rediscovered Foobar and its vast amount of cusomization options, so I wanted to do my first own "theme" inspired by my needs as well as some skins seen around the internet.It all went pretty well until now: I want to have a "Display-Switch", that means a button to change the whole appearance. So I created multiple "panel stack splitter" inside my main (empty) panel splitter. The buttons are coded in the main pss script, so I can swap appearance via $showpanel. Since the button is always located in the upper right corner it shouldn't be a big problem, BUT: I want it to be more included into the whole theme, not only to be "toolbar-like". E.g. one possible display should look like this: big album art on the left, and on the right in vertical order: buttons, pss ( wsh - track info ), pss ( virualization ; wsh - seekbar ). Not that much - and I got all to work, the display as well as the buttons - but I just can't combine them if I want the buttons to be in the display's parent pss' script, not in the display's script (that's easy ).I found two solutions/workarounds:1. Move the Display Panels a bit down so I get free Space on top - makes the buttons appear2. Create the buttons in the display's main pss' script and update ($showpanel) in the parent pss' per second section - the delay creates a bad feeling AND the buttons don't work when paused/stopped. A command to refresh the parent pss would be very helpfull, but I looked it up in the components documentation and couldn't find anything.

I tried almost everything from moving the panels via script, forced layout, fake transparency and everything I could imagine to help, but nothing worked - perhaps I just combined the wrong settings? Thanks in advance for your help!Have a nice day

If I understand you correctly, you want a refreshall command (the refresh command available only refreshes code in the containing panel). Unfortunately there isn't a refreshall command and so some sort of workaround is needed that forces the code to run in the child panels when a button is clicked in the parent panel.

One workaround is below.

CODE

Include $get(p.p) as a button command – this will refresh most child panels – and is documented earlier in the thread.$puts(p.p,$if(%ps_ispause%,COMMAND:Playback/Play;COMMAND:Playback/Pause,$if(%ps_isplaying%,COMMAND:Playback/Pause;COMMAND:Playback/Play,COMMAND:Playback/Play;COMMAND:Playback/Pause)))$textbutton(x,y,w,h,,,$get(p.p);REFRESH,,) I have never found this to interfere with playback and it also works with $imagebutton. The rapid change in playback state causes the code to run. It works best with the panels positioned with $movepanel and forced layout.

Another possibility is to force a small resize of the child panels (e.g. 1 pixel height or width difference toggle when the button is pressed – more difficult to code - but can trigger the code to run and help.

If I understand you correctly, you want a refreshall command (the refresh command available only refreshes code in the containing panel). Unfortunately there isn't a refreshall command and so some sort of workaround is needed that forces the code to run in the child panels when a button is clicked in the parent panel.

One workaround is below.....

Another possibility is to force a small resize of the child panels (e.g. 1 pixel height or width difference toggle when the button is pressed – more difficult to code - but can trigger the code to run and help.

I hope that helps and that I understood your post correctly.

Thanks for the quick reply!I just tested it and it works perfectly! Although I needed it the other way round (refresh the parents' code when a child panel's button is clicked) your code did exactly this and no delay is audible!Thanks thanks thanks Have a nice day!