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: How to shutdown foobar after some time? (Read 5228 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to shutdown foobar after some time?

I find foo_shudler and foo_shutdown, but i like to listen di.fm when falling asleep, but i didn't like when im wake up and music is still playing...
It's any way to resolve this without using windows task queue?

How to shutdown foobar after some time?

Reply #1
Simple .bat file:

Code: [Select]
timeout /T 300 /nobreak
taskkill /IM foobar2000.exe


of course you could also shutdown the computer:
Code: [Select]
shutdown /s /t 300
"I hear it when I see it."

How to shutdown foobar after some time?

Reply #2
I find foo_shudler and foo_shutdown, but

But... what? Did it not work? Could you not figure out how to configure it?

Scheduler will do it.
First make an action list with the task you want to do. For example:
- 50 minutes delay
- Exit foobar2000
Then add a menu item event. Next, right-click on the event and assign the action list.

When you want to begin, choose the event from: File > Scheduler > (event name). (or make a button or shortcut)
Check if the event is in operation at: File > Scheduler > Status window.


Or to exit at a specific time, make an action list without a delay, and assign it to a date/time event.


http://www.hydrogenaudio.org/forums/index....showtopic=49589



How to shutdown foobar after some time?

Reply #3
Unfortunately, OP didn't elaborate very much on the use of either component.

I think what he/she was saying is that foobar plays the remnant of the stream stored in the buffer upon resumption of using the computer (because I've noticed other threads in a similar vein).

I haven't used foobar and foo_scheduler in the scenario described by OP, but I'd assume that foo_scheduler and foobar, singularly or together, have settings that could prevent the buffer remnant from playing (if that is the problem).

How to shutdown foobar after some time?

Reply #4
Ah... yes I think you are right, or at least on the right track. Thanks for pointing that out BenB! My comprehension was poor, and it didn't occur to me that audio might play after the computer resumed from a shutdown.

In that case, I believe all that is needed is to add a Stop playback action to the list before the exit and/or shutdown.
  • X <minutes/hours> delay ...(not needed if using time/date event)
  • Stop playback
  • 1 minutes delay
  • Exit foobar2000 ...(if desired)
  • Shutdown (Poweroff or Suspend or Hibernate)

This has worked for me.


 

How to shutdown foobar after some time?

Reply #6
If I wanted to run through a set of tasks, macros, loops, commands and controls I would do it by creating an Autoit scripted executable.
Autoit is perfect for these scenarios. You can record any (mouse, keyboard) action you like and Autoit will create the script for you
...which you then compile to your own custom EXE ("shutdown_foobar_with_tasks.exe" perhaps).

You can get really imaginative when scripting with Autoit. For instance, we record all these mouse actions and turn all into a script:
start foobar2000 ......choose playlist ......play track ......adjust volume ......wait X minutes[1] ......adjust volume 3dB quieter ......wait X minutes[1] ......adjust volume 3dB quieter ......wait X minutes[1] ......adjust volume 3dB quieter ......wait X minutes[1] ......click toolbar button: Stop .......click toolbar menu: File->Exit ......shutdown computer[2]

[1] edit the script after recording your action and use the Autoit function "Wait"
[2] edit the script after recording your action and use the Autoit function "Shutdown" ......i.e. this is the very last line in your script:    Shutdown (1)