PoE-Overlay-Community / PoE-Overlay-Community-Fork

An Overlay for Path of Exile. Built with Angular.
MIT License
460 stars 85 forks source link

Suggestion: Allow for executing the program from bat file #325

Open adikavemen opened 1 year ago

adikavemen commented 1 year ago

🚀 feature request

Is your feature request related to a problem? Please describe.

I run multiple overlays and have begun using a .bat script to run each of them with the "start" command. This works for other overlays except this one. Here is the script I use: @echo off cd "D:\Path of Building Community" start PathofBuilding.exe cd "D:\Path of Building Community\POEOverlay\Lailloken-UI-1.30.4-hotfix2" start LaillokenUI.ahk cd "D:\Path of Building Community\POEOverlay\poe-overlay" start poe-overlay.exe exit

Describe the solution you'd like

Currently when the start command is run, the output and program operation is tied to the terminal it is running from. If this could be seperated somehow I think that may resolve the issue.

Describe alternatives you've considered

Unsure of what else may be possible, tried using the command start /i poe-overlay.exe with no luck

WhiteFang5 commented 1 year ago

You might be able to use start "" poe-overlay.exe or if you can switch from windows command line to bash (using cygwin or simply having git for windows installed, which includes cygwin) you could use the disown command as following:

cd "D:\Path of Building Community\POEOverlay\poe-overlay"
./poe-overlay.exe
disown
exit
insi9nis commented 1 year ago

What is actually failing for you? I have been launching everything from a .bat for a while now without issue. Have you tried start with the /b parameter? That's all I see that I'm doing differently.

I was lazy and just launched from the shortcuts that I already had on my desktop, moved to a dedicated folder:

@echo off
c:
cd "\temp\Path of Exile"
start /b .\"Path of Exile Exilence Next.lnk"
start /b .\"Path of Exile Sidekick.lnk"
start /b .\"Path of Exile Trade.lnk"
start /b .\"PoE Overlay.lnk"
start /b .\"Exile Diary.lnk"
sleep 5
start /b .\"Path of Exile.lnk"