Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Button to launch external app (Read 2853 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Button to launch external app

Hi all,

Is it possible to create a button on FooBar that will launch an external app when pressed?

I'd really like to have a button to launch MilkDrop 3, but haven't been able to figure out how. I'm using 2.1 with Columns UI.
Is it possible with JScript Panel 3?

Hope someone can help!

Re: Button to launch external app

Reply #1
Run Services (foo_run)
https://www.foobar2000.org/components/view/foo_run

I am using 20/07/2023: MilkDrop 3.2

Preferences > Tools > Run Services > Add
Label: MilkDrop 3
for example:
Path: "C:\Program Files\MilkDrop3\MilkDrop 3.exe"

Buttons options > Add > Context menu > items > Run service/MilkDrop 3
Use custom text: MilkDrop 3
Use custom icon: select
OK

Popup display.
always on top window (F7) and borderless mode.



foobar2000 v2.1 preview 2023-11-27 64-bit Columns UI
----

MilkDrop 3
https://github.com/milkdrop2077/MilkDrop3
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #2
MilkDrop 3.2
https://mega.nz/file/Mfd10Y5b#q8K_pwsx2O5jhwTPRzakAa-M-VuktP3_ktQD46dRL3o

Please rename folder to "MilkDrop3".
Place the MilkDrop3 folder below.
C:\Program Files\MilkDrop3\

F1 key Help
-----
Please use it separately from MilkDrop 3.23.

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #3
Thanks for the instructions, Air KEN, but I don't seem to have Run Services under Preferences > Tools >

Am I doing something stupid??

Re: Button to launch external app

Reply #4
Please close foobar.
Remove the following and install Run Services (foo_run) again.
foo_run.dll
foo_run.dll.cfg

Standard installation:
C:\Users\username\AppData\Roaming\foobar2000-v2\configuration\foo_run.dll.cfg

Portable installation:
\profile\configuration\foo_run.dll.cfg



Playlist View Context menu > Run services > MilkDrop 3
-If you can start MilkDrop with this operation, it is a success.
All that's left is to configure the button.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #5
Thanks very much for your generous help, Air KEN, but I can't get it to work.
I've installed in Program Files, set up the Run services, created a button...but nothing happens when I press it.
I'll stick with launching it as a separate program, the old-fashioned way - that definitely works!
Thanks again for the advice!
-StuPC

Re: Button to launch external app

Reply #6
It may be because "d3dx9_43.dll" is missing.

https://www.microsoft.com/en-us/download/details.aspx?id=8109
directx_Jun2010_redist.exe save

Desk Top "d3dx9_43" create folder

"directx_Jun2010_redist.exe" Double click install → Yes → Browse "d3dx9_43" folder designation
"DXSETUP.exe" in "d3dx9_43" folderright click "Run as administrator"

Install start.
-----------------------------------
Use MilkDrop 3.2
Reply #2 https://hydrogenaud.io/index.php/topic,125099.msg1035833.html#msg1035833

Please rename folder to "MilkDrop 3". (Review folder name)
Place the "MilkDrop 3" folder below.
C:\Program Files\MilkDrop 3\

Preferences > Tools > Run Services > Add
Label: MilkDrop 3
for example:
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"

Playlist View Context menu > Run services > MilkDrop 3
-If you can start MilkDrop with this operation, it is a success.
All that's left is to configure the button

Buttons options > Add > Context menu > items > Run service/MilkDrop 3
Use custom text: MilkDrop 3
Use custom icon: select

If successful, please send me a screenshot

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #7
MilkDrop 3.2 Does MilkDrop start when you double-click the executable MilkDrop 3.exe?
---
In my foobar, you can also start MilkDrop 3.23 from Run Services, but it's difficult to explain in English, so I used MilkDrop 3.2 for the explanation.
I was thinking of moving on to setting MilkDrop 3.23 next, but it seems impossible.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #8
Installed the DX, but still no joy.
Could it be because I use a portable installation (I've done a LOT of customising, so want to make sure I don't lose it!)

Re: Button to launch external app

Reply #9
I also have a portable installation.
Test by copying the entire folder.

MilkDrop 3.2 Does MilkDrop start when you double-click the executable MilkDrop 3.exe?
Are the renamed folder names and locations correct?
I don't know where you're having trouble.

Is this your first time setting up a Run service?
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"
You also need a double quotation mark.

Reply #6 https://hydrogenaud.io/index.php/topic,125099.msg1035854.html#msg1035854
             ↑ Please just look here

I often make simple mistakes based on my own assumptions.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #10
The MilkDrop installation works just fine when launched by itself, and I've checked the run.dll by building a button for one of the other functions and launching that - no problem.
It's only when doing both together that it fails.

I'll have another try over the weekend - and make extra sure I'm following your excellent instructions. :-)

Re: Button to launch external app

Reply #11
Folder name, location
and
foo_run: Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"
please confirm.

Use MilkDrop 3.2 (not MilkDrop 3.23)
Reply #2 https://hydrogenaud.io/index.php/topic,125099.msg1035833.html#msg1035833

MilkDrop 3 folder
-Milkdrop3 folder
-LICENSE.txt
-MilkDrop 3.exe
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #12
Since the OP mentioned JSP3, if you already have a panel in your layout, you can add this code to it...

Code: [Select]
function on_main_menu(index) {
   if (index == 1) utils.Run("C:\\Program Files\\MilkDrop 3\\MilkDrop 3.exe");
}

Now configure your toolbar button to run this main menu command:

Code: [Select]
File>JScript Panel 3>1

Re: Button to launch external app

Reply #13
Here you go, Air KEN - MilkDrop 3 folder, Run.dll setup, and button setup.

I've just redone this from scratch, but it doesn't work in foobar.
It does work when activated outside foobar.

marc2k3 - thank you for the advice, but I'm not a coder at all (I just use the Jscript3 samples!), and am not quite sure what your suggestion is asking me to do...

Re: Button to launch external app

Reply #14
I also have a portable installation.
Test by copying the entire folder.

MilkDrop 3.2 Does MilkDrop start when you double-click the executable MilkDrop 3.exe?
Are the renamed folder names and locations correct?
I don't know where you're having trouble.

Is this your first time setting up a Run service?
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"
You also need a double quotation mark.

Reply #6 https://hydrogenaud.io/index.php/topic,125099.msg1035854.html#msg1035854
             ↑ Please just look here

I often make simple mistakes based on my own assumptions.

My foobar base folder is C:\foobar2000 - could it be that not having foobar installed in Program Files is the problem?

Re: Button to launch external app

Reply #15
I also have a portable installation.
Test by copying the entire folder.

MilkDrop 3.2 Does MilkDrop start when you double-click the executable MilkDrop 3.exe?
Are the renamed folder names and locations correct?
I don't know where you're having trouble.

Is this your first time setting up a Run service?
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"
You also need a double quotation mark.

Reply #6 https://hydrogenaud.io/index.php/topic,125099.msg1035854.html#msg1035854
             ↑ Please just look here

I often make simple mistakes based on my own assumptions.

My foobar base folder is C:\foobar2000 - could it be that not having foobar installed in Program Files is the problem?

Just tested it. No that's not the problem.

Re: Button to launch external app

Reply #16
> My foobar base folder is C:\foobar2000 - could it be that not having foobar installed in Program Files is the problem?
It doesn't matter. I'm also portable

Playlist View Context menu > Run services > MilkDrop 3
Have you checked the startup?

Not Preferences > Display > Columns UI > Layout.
Add a Toolbar Button.



Option - Buttons Display > Add > Command group "Context menu item" Select > Command > "Run service/MilkDrop 3" Select > OK



Buttons:
Use custom text
Use custom icon > Browse... Select > OK





light blue cd icon: MilkDrop 3
Orange cd icon: MilkDrop 3.23

light blue cd icon (Button) click

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #17
For now, I will also write down the settings for "MilkDrop 3.23".

MilkDrop 3.23.zip
https://mega.nz/file/MeV1VBpC#L4hcsoMci2J8p1kgUIsx2lVdsVaGAph2DWxaeQ2aCCA

MilkDrop 3.23
-Milkdrop3 folder
-LICENSE.txt
-MilkDrop 3.exe
-MilkDropPanel.exe
-milk3.ini

Create "foobar2000 v2x preview" folder
Put the portable folder (foobar2000) inside it
It will be below

"C:\foobar2000 v2x preview\foobar2000\foobar2000.exe"

Copy it into the same folder as foobar2000.exe.
-Milkdrop3 folder
-MilkDrop 3.exe
-MilkDropPanel.exe
-milk3.ini

Copy the foobar profile folder you are using to foobar2000 folder
C:\foobar2000 v2x preview\foobar2000\profile

--------

MilkDropPanel.exe Double click → Milkdrop 3.23 Start Setttings Display



C:\foobar2000 v2x preview\foobar2000\foobar2000.exe

foobar2000.exe /show



Save → Settings are saved in milk3.ini.
You need to prepare the empty save file "milk3.ini" yourself (I have prepared it for you).

--------

Preferences > Tools > Run services
Label: MilkDrop 3.23
Path: "C:\foobar2000 v2x preview\foobar2000\MilkDrop 3.exe"
Check in context menu



The rest is the same button settings.

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #18
Thanks, Air KEN - will try this tomorrow when I have some spare time.

Re: Button to launch external app

Reply #19
Run service path is not enclosed in double quotation.
for example:
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"

Reply #6 https://hydrogenaud.io/index.php/topic,125099.msg1035854.html#msg1035854

MilkDrop 3.2 fills the top.
Move the cursor to the top left and move it to the right to display the title bar.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #20
It is clearly written in a different way in Japanese wiki.

MilkDrop 3/External Application/Visualization 64bit
https://foobar2000.xrea.jp/?Visualization+64bit#d08df398
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: Button to launch external app

Reply #21
Run service path is not enclosed in double quotation.
for example:
Path: "C:\Program Files\MilkDrop 3\MilkDrop 3.exe"

Reply #6 https://hydrogenaud.io/index.php/topic,125099.msg1035854.html#msg1035854

MilkDrop 3.2 fills the top.
Move the cursor to the top left and move it to the right to display the title bar.
That was the problem - I was missing the double quotation marks around the run service path!

Working perfectly now. Thank you again for your patience and assistance getting this work, Air KEN. :-)

Re: Button to launch external app

Reply #22
 ;)
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)