new obscene hack...made with autohotkey
download on bottom of post
"Automate 2 foobar "
-if playlist name end with "#Tracks", playback order is set on shuffle(tracks) ,"#Albums" set shuffle(album), "#Default" set default, #Crossfader always active crossfader
-if mode is shuffle(tracks), crossfader is enabled.
-in others modes crossfader is disable if next track is from same album and tracknumber is N+1.
-focus on playback mode box disable automatic mode
-set %playback% tag =default force playback mode on default
use foo_dsp_crossfader and foo_cwb_hooks.
copy file on foobar directory and start.
set cwb_next_user1 = %album%
set cwb_next_user2 = %tracknumber%
set formatting foobar main window title as:
[%artist% - ]['['%album%[ CD%discnumber%][ #%tracknumber%]']' ]%title%
//////////////////////////////////
$iflonger(%cwb_next_artist%,0,,$puts(crossfader,1))
$if($strcmp(%cwb_activelist%,%cwb_playinglist%),,$puts(crossfader,1))
$if($strcmp($cut($right(%cwb_playback_order%,7),6),tracks),$puts(crossfader,1),)
$if($strcmp(%cwb_next_user1%$num(%cwb_next_user2%,3),%album%$num($add(%tracknumber%,1),3)),,$puts(crossfader,1))
$ifgreater($get(crossfader),0,' °¨°',)
autohotkey script
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Melomane (domenico.guerra@laposte.net)
;
; Script Function:
; auto set foobar2000 crossfader and playback mode
;
#SingleInstance force
SetTitleMatchMode, 2
DetectHiddenWindows, on
If 1=default
Foobar=ahk_class {DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1
else
{
IfWinExist, ahk_class {DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1
Foobar=ahk_class {DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1
else
Foobar=ahk_class {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}
}
#Persistent
SetTimer, detect_playback, 3000
return
detect_playback:
IfWinNotexist, %Foobar%
return
WinGetTitle, titlefoo , %Foobar%
IfInString, titlefoo,Crossfader
{if cf<>1
{
Run, foobar2000.exe /command:enable
cf=1
}
}
else
{if cf<>0
{
Run, foobar2000.exe /command:disable
cf=0
}
}
IfWinNotactive, %Foobar%
return
ControlGetFocus,onfocus,%Foobar%
if onfocus<>ComboBox1
{
IfInString, titlefoo,Auto albums shuffle
run foobar2000.exe /"command:Shuffle (albums)"
IfInString, titlefoo,Auto tracks shuffle
run foobar2000.exe /"command:Shuffle (tracks)"
IfInString, titlefoo,Auto default playback
run foobar2000.exe /"command:Default"
}
return