How to shutdown foobar after some time? |
![]() ![]() |
How to shutdown foobar after some time? |
Mar 14 2013, 22:31
Post
#1
|
|
|
Group: Members Posts: 2 Joined: 14-March 13 Member No.: 107227 |
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? |
|
|
|
Mar 14 2013, 22:50
Post
#2
|
|
![]() Group: Developer Posts: 304 Joined: 29-April 11 From: Austria Member No.: 90198 |
Simple .bat file:
CODE timeout /T 300 /nobreak taskkill /IM foobar2000.exe of course you could also shutdown the computer: CODE shutdown /s /t 300
This post has been edited by xnor: Mar 14 2013, 22:51 |
|
|
|
Mar 15 2013, 01:45
Post
#3
|
|
![]() Group: Members Posts: 407 Joined: 26-March 09 Member No.: 68400 |
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 |
|
|
|
Mar 15 2013, 04:59
Post
#4
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
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). This post has been edited by BenB: Mar 15 2013, 05:01 -------------------- This signature apparently isn't too long.
|
|
|
|
Mar 15 2013, 06:46
Post
#5
|
|
![]() Group: Members Posts: 407 Joined: 26-March 09 Member No.: 68400 |
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.
This has worked for me. |
|
|
|
Mar 15 2013, 08:38
Post
#6
|
|
|
Group: Members Posts: 2 Joined: 14-March 13 Member No.: 107227 |
Problem is i can't find manual to foo_shudler becouse link is broken http://www.foobar2000.org/components/view/foo_scheduler
Could you make print screen with your shuting down script? Becouse Im total newbie with foobar. |
|
|
|
Mar 15 2013, 11:57
Post
#7
|
|
![]() Group: Members Posts: 469 Joined: 5-June 11 Member No.: 91257 |
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) This post has been edited by derty2: Mar 15 2013, 12:19 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 17:43 |