Help - Search - Members - Calendar
Full Version: Foo automate, playlist find and scheduler replacement
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Uploads - (fb2k)
david_dl
Does this not violate the TOS as it is just a bunch of obscene hacks?
roentgen
I don't think autohotkey violates anything.....
It just points at some imperfections tongue.gif
For ex: I've used AHK for tagging 1000 songs with lyrics.... but the next version of foo_lyricsdb.dll had an option like 'apply to all'
leafo
QUOTE
15. Posting third party foobar2000 components.
To prevent users from encountering problems after installing new versions of foobar2000, links to any components that aren't fully compatible with foobar2000 API specifications (eg. using "hacks" to provide features that aren't legally available via API yet) will be removed from official pages, including forum posts. If you don't want your component to be banned, use only interfaces provided by foobar2000 SDK and avoid making any additional assumptons about the way application loading your component works.


Looks like it does sad.gif
kjoonlee
AutoHotkey isn't really a foobar2000 component. It's just a keystroke/mouse-click simulator, as far as I know.
pepoluan
<blurb>
keystroke/mouse-click capture and simulator
screen scraper (including reading the list of fields in a listview box within dialog box)
window manager (i.e. transparency, always on top)
you name it, it can do it
</blurb>
Ihmemies
Problem is, that there aren't any alternatives as far as I know, for example changing between different dsp presets. Before there is, smoothly working hack like this is better than nothing. Of course I would prefer a .dll plugin instead of an extra .exe file, but well..-
Melomane
QUOTE(Ihmemies @ Jun 20 2006, 17:29) *

Problem is, that there aren't any alternatives as far as I know, for example changing between different dsp presets. Before there is, smoothly working hack like this is better than nothing. Of course I would prefer a .dll plugin instead of an extra .exe file, but well..-

now i have made differents file because is very usefull to use with foo_run; you can easy set shortcut or use with context menu

Melomane
QUOTE(david_dl @ Jun 16 2006, 06:03) *

Does this not violate the TOS as it is just a bunch of obscene hacks?

first, it isn't a hack
second, if it is "obscene" make a plugin! tongue.gif
tool++
QUOTE(david_dl @ Jun 16 2006, 05:03) *

Does this not violate the TOS as it is just a bunch of obscene hacks?



I'm sure being completely disrespectful to the thread author is pretty rulebreaking, too wink.gif
Melomane
QUOTE(tool++ @ Jul 19 2006, 20:50) *

QUOTE(david_dl @ Jun 16 2006, 05:03) *

Does this not violate the TOS as it is just a bunch of obscene hacks?



I'm sure being completely disrespectful to the thread author is pretty rulebreaking, too wink.gif

smile.gif
RogerG
Hi!
Would you mind releasing the source code of this script? The ahk file...
Or at least give it to me?
Regards!
Melomane
QUOTE(RogerG @ Sep 5 2006, 19:13) *
Hi!
Would you mind releasing the source code of this script? The ahk file...
Or at least give it to me?
Regards!

done
RogerG
Thank you! I get the following error:

---------------------------
Sleep Foobar.ahk
---------------------------
Error at line 28.

Line Text: {if sleep_down=0
Error: This line does not contain a recognized action.

The program will exit.
---------------------------
OK
---------------------------


Regards
Melomane
QUOTE(RogerG @ Sep 8 2006, 16:06) *
Thank you! I get the following error:

---------------------------
Sleep Foobar.ahk
---------------------------
Error at line 28.

Line Text: {if sleep_down=0
Error: This line does not contain a recognized action.

The program will exit.
---------------------------
OK
---------------------------


Regards


i have download the file, work here

suggestion, use foo alarm
http://www.hydrogenaudio.org/forums/index....mp;#entry416147
RogerG
ok, works here with the latest ahk version smile.gif
pepoluan
QUOTE(RogerG @ Sep 6 2006, 00:13) *
Hi!
Would you mind releasing the source code of this script? The ahk file...
Or at least give it to me?
Regards!
Hey yeah! Me too! Me want source biggrin.gif

May me?

Andreasvb
He did add the source code, check his first post =)
scripts_sources.zip ( 6.17k ) Number of downloads: 13

I changed the sleep foobar a bit, it turns volume down then pause the song, after specified time.
I use that as a substitute until we get foo_scheduler for 0.9 tongue.gif
pepoluan
QUOTE(Andreasvb @ Sep 11 2006, 22:16) *

He did add the source code, check his first post =)
scripts_sources.zip ( 6.17k ) Number of downloads: 13
Meh, stupid me. I thought Melomane sent the sources directly to RogerG. huh.gif

Downloading! laugh.gif
RogerG
Hello there!

Your script uses the command: Run, foobar2000.exe "/command:Volume down. The problem is, that this command uses the volume step that you have setted in foobar advanced settings. In my settings this was 1db. 1db was too much. When lying in my bed I was able to hear the steps. So I have set the step to 0.1db. A step of 0.1db can no longer be noticed by your ear. The problem then is that adjusting my volume with + or - takes too much time.
Isn't there a command to cange the volume independed of your volume step setting?

Regards!
Melomane
set in sleep_foo:
_________________________________________________________________
if( alarm_hour=A_HOUR and alarm_min=A_MIN and alarm_on=1)
{
SoundSet, +1, , mute
Run, %Foo_folder%
sleep, 100
Loop, 300
{ Run, %Foo_folder% "/command:Volume down"
sleep, 33
}
SoundSet, +1, , mute
Run, %Foo_folder% /command:play
sleep, 2000
[Loop, 300
{ Run, %Foo_folder% "/command:Volume up"
sleep, 200
___________________________________________

Melomane
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:
CODE

[%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
CODE


;
; 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

pepoluan
@Melomane: What's that 1=default thing there?

Why not use Process, Exist, foobar2000.exe to get fub's PID?
Melomane
QUOTE(pepoluan @ Oct 11 2006, 16:49) *

@Melomane: What's that 1=default thing there?

Why not use Process, Exist, foobar2000.exe to get fub's PID?

1 is first command line option for script.
it is for force use with default UI.
without option column is set if script start before foobar
if foobar exist at startup of script, script detect and set gui.
sorry for my bad english
Melomane
make mod to automate , see first post
Squeller
I admit I ignored your solution as I hate to install another script interpreter. Because I use girder it already does lots of automation/batch stuff. But after whining a couple of times in the forums about making the dsp presets accessible from outside of the gui, with no solution, I'd really like to access my dsp presets now with my remote control.

First question, before I begin: Does this work seemless cannot imagine how) or do I see windows and mice jumping, when e.g. changing a dsp preset?
Melomane
QUOTE(Squeller @ Dec 22 2006, 15:38) *
...Does this work seemless cannot imagine how) or do I see windows and mice jumping, when e.g. changing a dsp preset?


you see windows jumping

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.