Author Topic: How to set Alt.Binz to Disconnect once it completes the last nzb in the queue  (Read 2178 times)

simian340

  • Guest
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?

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
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.

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
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
}

« Last Edit: July 24, 2009, 01:12:08 pm by Hecks »