Help - Search - Members - Calendar
Full Version: little component needed
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Birk
Can somebody write a component that calls a batch file every second?
(but so that it starts invisible)
I think here are many people who can do that easy.
The batch will be in the components dir.

I need that because i want to make some auto-tagging thinks with it.
(foo_text writes the batch and the batch tagges the track...)
Then I could make some really nice things (e.g. for intelligent playback)

thank you if you do it smile.gif
Hamallainen
Maybe you could do that with foo_scheduler
Birk
I don't can do that invisible with the scheduler
(and to have every second this windows-loading-clock is not very nice)

if somebody tells me how it works with scheduler it would of course be also ok
Mr_Rabid_Teddybear
I really have no idea, but off the top of my head: There where two "do-things" plugins floating around.... One called "foo_run" and one called "foo_openwith". I have not tried either, and have no idea if any of them do anything approximately in the neighborhood of what you want... But you can do a search and check them out....

Birk
I've tried openwith with the scheduler before i started this thread but it did't work.
(i always see the batch in the taskbar, and that every second mad.gif )
foo_run can do only the same things like openwith so that doesn't help me.

The only way I can do what I want is to make another batch wich calls the batch.
(I can minimize it to the systray)
But with that batch there are two problems:
How can I make it that
-the batch starts if foobar starts?
-it don't use 2% of cpu (more than fb2k ohmy.gif )

Nobody could help me?
filon
Use "Run program" action with foo_scheduer. Just enter batch file name in the dialog.
gfngfgf
Hmm, I think the problem Birk is having is not getting the batch file to run, but the fact that the command window pops up every time the batch file runs, which in this case is every second.

There is a way to do this using vbscript. Basically, the script calls the batch file, and the command window is hidden. I've been searching for a while, but I can't find the exact code. I'll keep looking, though.

edit: that is, I've done this before, but I can't find where I got the code from anymore.

edit2: I haven't found the script I was talking about, but here's a small (40k) program which does the same thing:

http://www.extendingflash.com/utilities/runhide.html
Birk
Thank you very much biggrin.gif


Why I don't have the idea to search a program like this? wink.gif

Now i can do all what I wanted

@filon
Nice that you wanted to help me, but could you please read befor you post something?
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.