Alt.Binz forum

Alt.Binz (English) => Help => Topic started by: simian340 on July 24, 2009, 02:59:52 am

Title: How to set Alt.Binz to Disconnect once it completes the last nzb in the queue
Post by: simian340 on July 24, 2009, 02:59:52 am
I've been using Alt.Biz 0.25.0 for several months now and it works great. However I would like for Alt.Binz to disconnect from my Usenet provider once the last .nzb in the queue has been par'd and unrar'd. I have "Connected while idle *" unchecked but Alt.Binz still stays connected even though there is nothing left to download. Am I selecting the wrong option? Is this feature available in a more recent release?
Title: Re: How to set Alt.Binz to Disconnect once it completes the last nzb in the queue
Post by: davidq666 on July 24, 2009, 08:05:29 am
I've been using Alt.Biz 0.25.0 for several months now and it works great. However I would like for Alt.Binz to disconnect from my Usenet provider once the last .nzb in the queue has been par'd and unrar'd. I have "Connected while idle *" unchecked but Alt.Binz still stays connected even though there is nothing left to download. Am I selecting the wrong option? Is this feature available in a more recent release?

It just looks like as if it were still connected, because the connect button is still highlighted, but if u take a look in the log u will see, that each thread gets disconnected after it has downloaded the last article.
Title: Re: How to set Alt.Binz to Disconnect once it completes the last nzb in the queue
Post by: Hecks on July 24, 2009, 01:07:26 pm
The Connect button itself can also be toggled programatically by enabling Setup -> Misc #2 ->  Enable status in XML file, then using a script like with this Powershell example:

Code: [Select]
$abstatusxml = "C:\Program Files\Altbinz\altbinz_status.xml"

function Toggle-AltbinzConnect {
  $abstat = [xml] (get-content $abstatusxml)
  if ($abstat.altbinz.connect -imatch "false") {
    write "Connecting Altbinz ................"
    $abstat.altbinz.connect = "true"
  } else {
    write "Disconnecting Altbinz ............."
    $abstat.altbinz.connect = "false"
  }
  $abstat.save($abstatusxml)
}

if (((get-process) -match "altbinz") -and (test-path $abstatusxml)) {
  Toggle-AltbinzConnect
}