Help - Search - Members - Calendar
Full Version: foo_func
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Spirit_of_the_ocean
Download-Link

The page and the read me seems to be in japanese. Can someone help translate?

I do not understand what this plugin does and so I don't know if it is useful to install...
Keikonium
It does tons of stuff. It's basically a component that the developer puts random features in that do cool things. For example:

- $calc() is like Panels UI's version of $eval() except it can do decimals also.
- $console(string) can write things to the console.
- $getimageinfo(file,mode) can provide you with the width / height or file type of the file provided.
- $files_ex(cmd,path,file) can get the size of all files in a folder(my suggestion to the developer happy.gif) and other things like the number of files in a folder.
- $textfile can read text documents
- $textwrite can write things to text files
- $setcontextmenu(name,'tf') can add functions with a one-click execution

It can also do loads of things with playlists smile.gif.

I have personally had a lot of problems with it and AVG Anti-virus (it isn't a virus tho) and it locks foobar up for me sometimes. The newest versions 0.2.5 and up seem to be okay so far however.
Squeller
Don't those japanese component developers speak english or do they just want to stay local heroes?
thuan
Well, most of them are not good at English due to various reasons. That's why they stay as local heroes.

I have translated Lyrics Art (the component and readme) and graphical browser readme though.

EDIT: I had planned to do translation for some other components, but gave up due to time constraint and the recent foobar developers' announcement.
grounder
Foo_func Japanese Wiki online trnslate

Foo_func original Japanese Wiki
Spirit_of_the_ocean
I have a question:
I have in Panel ui a Button which appears when a Cover does not exist. If you click this button the Album Cover Downloader Xui is activated.

CODE
$if($not($cwb_fileexists(E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg)$not($or(%cwb_playback_state%,stop))),$button(80,180,0,0,256,256,images\Inas Metalseries\Coverdownloadsnall.png,,Run/Coverdownloader,))


Is it possible to create something similiar but without having to create and to press a button?

EDIT: Yes it does what I want smile.gif
CODE
$if($not($cwb_fileexists(E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg)$not($or(%cwb_playback_state%,stop))),$execute(C:\Programme\AlbumArtDownloaderXUI\AlbumArt.exe,-ar "%artist%" -al "%album%" -p "E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg"))


This is really cool. It makes the Cover Art Download more automatic smile.gif
Keikonium
Quick question to AVG Anti-Virus Users:

The problems I was talking about earlier keep creeping up on me when I use foo_func in my layout >.<. I am almost positive it is a foo_func problem (but then again, could be AVG).

Anyways, what happens is my computer CPU sky rockets to 100%, everything slows down, foobar gets choppy playback, and things in my layout start disappearing (graphics wise). AVGCC.exe starts to get all jumpy, and pops up with a "This program has done something bad" error (yes that is actually what AVG says...).

I try to exit foobar, and it gives me warnings about loosing playlists, changes to the config file, etc. I click okay until foobar finally exits (nothing is ever lost tho blink.gif ).

So my AVG crashes, and foobar crashes (basically). I remove foo_func (and settings) and everything works flawlessly from then on. I add it back in, and this stuff starts up again. I even removed AVG from my system and foobar crashed (it took 2 days or so for it to happen, but it eventually did anyways).

So has anyone else experienced these issues?
Spirit_of_the_ocean
Not the same issues but my avast is telling me that foo_fileops from 9.5.1 Beta 1 is dangerous. That is really stange.

Suggestion:
Go offline deactivate the AVG and then try Foobar with func. When everything is okay it seems to be the wrong AVG which causes the crash.
antar3s
QUOTE(Keikonium @ Apr 11 2008, 18:46) *

Anyways, what happens is my computer CPU sky rockets to 100%, everything slows down, foobar gets choppy playback, and things in my layout start disappearing (graphics wise).


Not running AVG, though i have a similar problem:
1) open a foo_func popupmenu
2) use a global shortcut, while popupmenu is still open
3) playback pauses until menu is closed. sometimes cpu usage goes to 100% and i have to kill foobar
vigylant
Does anyone know how the $Playlist_group works?
I have this, but how do i get a dynamic group index:

$playlist_group(count,'$substr(%filename%,0,1)',0)

'$substr(%filename%,0,1)' is my grouping scheme...

The 0 on the end is the group index, which i find is completly useless if its not dynamic... I tried the index variable, but it only works as the first parameter...

Any ideas? smile.gif
Lucky Luciano
I'm trying to get the total size of all files in a folder using $files_ex but can't get anything else than 0. What's the correct syntax?

EDIT: OK, found the correct syntax in the japanese language wiki: $files_ex(size,c:\temp,*)
servimo
Not working, at least with the latest foobar-0.9.5.2
Spirit_of_the_ocean
It works for me in 9.5.2. smile.gif

How do you use it? I mean foo_func?
servimo
I loaded it, but then in the menu nothing happens when I press the button, maybe I need to had some function, right, so, if is this, is working. Sorry! I'm not let this happen again.
servimo
QUOTE(Spirit_of_the_ocean @ Apr 21 2008, 17:52) *

It works for me in 9.5.2. smile.gif

How do you use it? I mean foo_func?
I just load it, pressed the button, and nothing happen. Maybe I need to put some expression on the foo_func config, don't know well what to do with it. I thought I will have some examples of some functions in it when I press the button. I was looking for something like in this thread "play next playlist? possible?" but at the end of the current playlist. Interesting plugin.
Spirit_of_the_ocean
The button doesn't work for me too. But in the preferences for Foo_func I have in the "on playback new track" section:

QUOTE
$if($not($cwb_fileexists(E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg)$not($or(%cwb_playback_state%,stop))),$execute(C:\Programme\AlbumArtDownloaderXUI\AlbumArt.exe,-ar "%artist%" -al "%album%" -p "E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg"))


I find this very useful smile.gif

servimo
QUOTE(Spirit_of_the_ocean @ Apr 23 2008, 07:34) *

The button doesn't work for me too. But in the preferences for Foo_func I have in the "on playback new track" section:

QUOTE
$if($not($cwb_fileexists(E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg)$not($or(%cwb_playback_state%,stop))),$execute(C:\Programme\AlbumArtDownloaderXUI\AlbumArt.exe,-ar "%artist%" -al "%album%" -p "E:\Eigene Dateien\Eigene Bilder\Cover2\%artist% - %album%.jpg"))


I find this very useful smile.gif
I will give a look at AlbumArtDownloaderXUI, I didn't test it yet. Could be a good way to test this plugin, but for what I see, all album art is downloaded into a specific folder, no problem, better have them then not. I am looking for somebody that do a script for play another playlist before the current playing. We'll see if I can do it.
servimo
Is not possible to look for the image and save it, if it not exists, in the same folder of the album? I don't understand or understand a little of scripts. What could be the variale for C:\Media\folder(artist name) - album name? I don't want to have another folder for the CoverArt.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.