Author Topic: Autopush Shutdown button  (Read 3227 times)

kodiak2000

  • Guest
Autopush Shutdown button
« on: May 16, 2007, 01:31:42 PM »
Hi,

A have a simple request that is to be able to select to Autopush the Shutdown button on startup.

This because I share a newsgroup conntection and need to exit alt.binz everytime and sometimes forget to push the shutdown button :)

Thanks,
Kodiak

Mantis

  • Guest
Autopush Shutdown button
« Reply #1 on: June 10, 2007, 05:10:42 PM »
I would really like "Autopush the Shutdown" too.

I use Windows scheduler to start Altbinz at 2AM to start downloading and it would be nice if it could shutdown my computer when my downloads are complete.

Offline Gompy

  • Contributor
  • ***
  • Posts: 382
  • Old Geezer
Autopush Shutdown button
« Reply #2 on: June 10, 2007, 07:43:39 PM »
Quote from: "Mantis"
I would really like "Autopush the Shutdown" too.

I use Windows scheduler to start Altbinz at 2AM to start downloading and it would be nice if it could shutdown my computer when my downloads are complete.


If I'm understand you well, this option is added for a long time already...

http://www.divshare.com/download/902042-a21

Mantis

  • Guest
Autopush Shutdown button
« Reply #3 on: June 10, 2007, 10:24:20 PM »
Quote from: "Gompy"


If I'm understand you well, this option is added for a long time already...

http://www.divshare.com/download/902042-a21


When the program is started with the scheduler, the shutdownbutton isn't pressed so changing those options won't change a thing.

I mean an extra 'autopush Shutdown' in the Miscellaneous menu.
http://www.divshare.com/download/903528-0ef

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Autopush Shutdown button
« Reply #4 on: June 10, 2007, 11:12:45 PM »
The OP's problem with the shared connection can probably be solved just by unchecking Setup > Connection > Connected while Idle.  This will stop alt.binz hogging your server connections when it's done downloading. :)

The solution to the second problem is a bit more involved.  I have a similar need to schedule a wake-up overnight, check if anything needs downloading, then shut down after downloading is finished.  The key is to enable this option: Setup > Miscellaneous > Enable status in Xml file.  Then for your scheduled task, instead of starting alt.binz, run a batch file that can monitor the altbinz_status.xml file in a loop.  Here's a very crude version:

:start_altbinz
start "" "C:\Program files\Altbinz\altbinz.exe"
@ping 127.0.0.1 -n 30 -w 1000 > nul

:check_status
find "<ETA>Unknown</ETA>" "C:\Program files\Altbinz\altbinz_status.xml" >nul
if %ERRORLEVEL%==0 goto exit_altbinz
@ping 127.0.0.1 -n 60 -w 1000 > nul
goto check_status

:exit_altbinz
taskkill /t /im altbinz.exe

You can also manually disconnect alt.binz by changing "<connect>true</connect>" to "<connect>false</connect>".  To do that with a batch file, you need to use a bit of vbscript or similar.  Then you can use command-line utilities like poweroff.exe to shutdown immediately after.

Actually, all of this is much easier to do with Powershell, the MS replacement for CMD.exe and .bat files.  That's what I use now, anyway, and I can share my scripts if that would help.

-Hecks