networkMe / missinghud2

Binding of Isaac: Rebirth/Afterbirth Statistics HUD
Apache License 2.0
339 stars 54 forks source link

Launch Isaac automatically #22

Closed esdeka closed 8 years ago

esdeka commented 8 years ago

Since the only goal of this is to run together with the game, it would be nice to have an option that starts Rebirth after opening the program (and close itself if it detects Rebirth is stopped)

This way you only need to make one shortcut to run both (I like being lazy)

40163650 commented 8 years ago

Step 1: Create batch file that runs MHUD2 and isaac-ng.exe Step 2: Convert batch file to exe (there are tools online) Step 3: Add to steam library

networkMe commented 8 years ago

I just wanted to add that I do not want to implement an auto-launcher/closer part to the HUD (as that goes against it's "drop-in and play" nature). However, I'm fine with adding a "Launch Rebirth/Afterbirth" button so that you just have to open MHUD2 and can launch the game without going to Steam.

samuelschoe commented 8 years ago

Ive written some powershell that will start BOI:A, wait a couple of seconds, and then start Missinghud minimized. It will then check every minute or so to see if BOI:A is running, and close Missinghud and if it isnt. Create a shortcut for this script or set it up to as a non steam game, and you should be good.

Note that you need to make a shortcut to Missinghud, set it to open minimized in the shortcuts properties first, and modify the shortcut path in the code to match its location on your PC first, but after that, its seamless.

https://github.com/samuelschoe/Powershell/blob/master/LaunchIssac.ps1

40163650 commented 8 years ago

That's interesting that you had to check if it was still running (I may have been using an older version but I still think it's the case) but mine automatically closed MHUD2 when Isaac was quit.

samuelschoe commented 8 years ago

I wrote it back in version 1.2.3, so this may not be needed anymore. Missinghud would stay open without closing, to the point where I had several processes running if I wasent paying attention.

You can eliminate the If loop from my code if thats the case. Of course, that the majority of the code to begin with, but these things happen. :)

networkMe commented 8 years ago

A "Launch Isaac via Steam" button will be implemented in v1.4.0

See commit: https://github.com/networkMe/missinghud2/commit/996f6e7c12e88e5d1135b8b0e8100d280f28533d

networkMe commented 8 years ago

v1.4.0 has been released with this feature.