Page 1 of 1
Run another program in background when mGalaxy starts on boot
Posted: Thu Jun 29, 2017 5:19 pm
by AnimeFan95
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
Re: Run another program in background when mGalaxy starts on boot
Posted: Fri Jun 30, 2017 3:00 pm
by Aeliss
IDK for windows 10 but you have some other solutions here
http://www.mgalaxy.com/forum/index.php? ... 68#msg2268
Re: Run another program in background when mGalaxy starts on boot
Posted: Sat Jul 01, 2017 12:19 am
by AnimeFan95
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
Re: Run another program in background when mGalaxy starts on boot
Posted: Sat Jul 01, 2017 10:53 am
by Aeliss
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.
Re: Run another program in background when mGalaxy starts on boot
Posted: Sat Jul 01, 2017 3:55 pm
by AnimeFan95
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
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 7:38 am
by jmd
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?
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 9:17 am
by AnimeFan95
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
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 7:47 pm
by jmd
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.
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 8:25 pm
by AnimeFan95
Thanks for finding this JMD
I have one question though. How would I setup the "Custom User Interface" to run a cmd batch file?
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 9:10 pm
by jmd
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!)
Re: Run another program in background when mGalaxy starts on boot
Posted: Sun Jul 02, 2017 9:13 pm
by AnimeFan95
Thank you so very much JMD
I will give this a try and will let you know soon.
Again, many thanks for your assistance.
Re: Run another program in background when mGalaxy starts on boot
Posted: Mon Jul 03, 2017 10:33 am
by AnimeFan95
JMD. You are my lord and saviour. I cannot thank you enough for helping me
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
Re: Run another program in background when mGalaxy starts on boot
Posted: Mon Jul 03, 2017 10:52 am
by jmd
My pleasure!
Thank you!