--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
>
> The script is a lot cleaner now, thank you very much!
>
>
> forxtra wrote:
>
> > Local Foobar2000 = ?"C:\Program Files\foobar2000\foobar2000.exe"
>
> I just changed the above line to my previous one, since I don't have foobar
> installed in %programfiles%, so it will always work wherever it may be,
> however I'll probably put it back by the time I release the skin, which will
> include this script.
>
> Local Foobar2000 = win.ExePath("=foobar2000")
>
You're right. I also didn't install foobar2000 in the default location. :)
But, If foobar2000 is not already running, Win.ExePath() cannot return vaild
path.
I think it would be convenient to launch foobar2000 by just clicking PowerPro
Bar regardless of whether or not foobar2000 is already running.
If the user normally install foobar2000, we could find vaild path by searching
the Registry with Reg plugin.
; --------------------------
Local Foobar2000 = Win.ExePath("+Foobar2000")
If (!Foobar2000) Do
Foobar2000 = Env("ProgramFiles") ++ ?"\foobar2000\foobar2000.exe"
If (!ValidPath(Foobar2000)) Do
Local Rg_Status
Reg.Error_Dialog_Off()
Foobar2000 =
Reg.Get_String(?"HKEY_LOCAL_MACHINE\SOFTWARE\foobar2000\InstallDir") ++
?"\foobar2000.exe"
EndIf
EndIf
; --------------------------
>
> Btw, I'll credit you for this, will "forxtra" be enough or should I include
> your name which I don't know...?
>
I'd like to be called "forxtra" or "forXtra" as a nickname on group.
Thanks.