Run another program in background when mGalaxy starts on boot

Get answers to questions about using mGalaxy.
Post Reply
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

Hello.

First of all,  I want to say thank you very much for inventing 'mGalaxy'. It is an incredible frontend and I could not ask for a nice and simple user interface for my arcade cabinet.

I do have one question though if anyone doesn't mind. I am running 'mGalaxy' as a 'Custom User Interface' on Windows 10. This makes it so that the 'mGalaxy.exe' process starts instead of 'explorer.exe' (https://technet.microsoft.com/en-us/lib ... 75911.aspx). Now with "explorer.exe" (Windows Explorer), you can run certain programs on startup. I do not know how to do this with the "Custom User Interface" policy. I wish to run the 'JoyToKey' program in background when 'mGalaxy' starts. Does anyone know how to run an additional program or .exe process on a 'Custom User Interface'?

I know this is a silly question to put on here since its Microsoft Windows related, but I want to achieve this so that I can navigate through the 'mGalaxy' main menu using my USB joystick.

Any help will be GREATLY appreciated.

Many thanks :)
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

IDK for windows 10 but you have some other solutions here http://www.mgalaxy.com/forum/index.php? ... 68#msg2268
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

I'm sorry Aeliss but that's not what I need. "Instant Shell" only works when you have one .exe process specified as a frontend, which I have already done with a Windows 10 policy ("Custom User Interface").

I just want to run an additional program or .exe process in background when mGalaxy runs as a "Custom User Interface" when the PC boots up. Do you know if there is any possible way to achieve this?

Many thanks :)
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

You can use batch file or converted file (lot of application to convert script to exe, autoit too).

All files you put in AppData\Roaming\Microsoft\Windows\ Start Menu\Programs\Startup will be executed too

All file in the registry will be executed too

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices
I haven't tried with win10 (paths are not exactly the same I think) and depend on the solution you choose, this is for a normal configuration, I don't know what instant sheller change in the configuration.
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

Hi Aeliss.

Thanks very much for your help. But I think these options are only suitable when the "explorer.exe" process starts, which it doesn't in my case.
I have "mGalaxy" started as soon as the PC turns on instead of "explorer.exe" (Windows Explorer).

Do you have any other suggestions? I would really appreciate it.

Thanks :)
jmd
Full Member
Full Member
Posts: 205
Joined: Mon Feb 05, 2007 2:33 pm

From my understanding one can only load ONE application when booting in "kiosk" mode.
Would you please tell me exactly what you did to boot on mGalaxy (link/tutorial - cause I don't know about 'Custom User Interface') so that I can help you my best?
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

Certainly JMD.

I have setup 'mGalaxy' to be my "Custom User Interface" using this tutorial: https://www.youtube.com/watch?v=Qxe4LJBP-FI

So every time my computer boots and logs on, it will open up 'mGalaxy' as the interface instead of the Desktop.

I wish to open another application in background, more specifcally 'JoyToKey' so that I can navigate through the mGalaxy main menu using my joystick and buttons.

Do you know if there is anyway to accomplish this? Many thanks for your help :)
jmd
Full Member
Full Member
Posts: 205
Joined: Mon Feb 05, 2007 2:33 pm

Just found this (https://social.technet.microsoft.com/Fo ... inserverGP), tell me if it helps!
If you want to run more than one software with 'Custom User Interface' enabled, you can setup the 'Custom User Interface' to run a cmd batch file.
For example to run internet explorer and google chrome:

Code: Select all

cd\
cd c:\Program files\internet
Start iexplorer.exe
de\
cd c:\Program files\google
Start Chrome.exe
Exit
Notice that you must use the command "start" that more than one software can run using the cmd command.
Last edited by jmd on Sun Jul 02, 2017 7:50 pm, edited 1 time in total.
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

Thanks for finding this JMD :)

I have one question though. How would I setup the "Custom User Interface" to run a cmd batch file?
jmd
Full Member
Full Member
Posts: 205
Joined: Mon Feb 05, 2007 2:33 pm

have one question though. How would I setup the "Custom User Interface" to run a cmd batch file?
Create the .bat file (let's call it "startup.bat")
Create a text file, paste these lines inside (edit it so that the path an application name are correct)

Code: Select all

cd\
cd c:\Program files\internet
Start iexplorer.exe
de\
cd c:\Program files\google
Start Chrome.exe
Exit
Save and exit, then rename this file to "startup.bat" (check that file extensions are visible in your windows settings, it is important to delete the original .txt extension and replace it with .bat)

Now, go to "Custom User Interface" settings and choose the "startup.bat" file as the application you want to run (instead of 'mGalaxy.exe')

Note: to edit a .bat file (if you have to correct something), right-click the .bat file and select "Edit" (double-clicking it would run the commands inside!)
Last edited by jmd on Sun Jul 02, 2017 9:13 pm, edited 1 time in total.
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

Thank you so very much JMD :D

I will give this a try and will let you know soon.

Again, many thanks for your assistance.
AnimeFan95
Newbie
Newbie
Posts: 25
Joined: Thu Jun 29, 2017 4:55 pm

JMD. You are my lord and saviour. I cannot thank you enough for helping me :D

I have been stuck on this issue for weeks and I am completely relived that it has been resolved.

Again, many thanks for your assistance. I sincerely hope people in future will appreciate your help.

Kindest regards,
AnimeFan95
jmd
Full Member
Full Member
Posts: 205
Joined: Mon Feb 05, 2007 2:33 pm

My pleasure! ;) Thank you!
Post Reply