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:
$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
}