Piotrekol / StreamCompanion

osu! information extractor, ranging from selected map info to live play data
MIT License
369 stars 59 forks source link

suggestion #388

Closed moosje2003 closed 1 year ago

moosje2003 commented 1 year ago

is it possible to implement auto start when launching osu

ghost commented 1 year ago

SC needs to be running before you start osu!, so I don't think this is possible unless osu.exe is modified to launch SC first.

Piotrekol commented 1 year ago

Create a script that starts everything you want - including SC - and make shortcut to it

powershell script I'm using to start 4 apps and osu! itself at the end:

$tablet = Get-Process "OpenTabletDriver.UX.Wpf" -ErrorAction SilentlyContinue
$sc = Get-Process "osu!StreamCompanion" -ErrorAction SilentlyContinue
$osuMissAnalyzer = Get-Process "OsuMissAnalyzer" -ErrorAction SilentlyContinue
$osuTrainer = Get-Process "osu-trainer" -ErrorAction SilentlyContinue
$osu = Get-Process "osu!" -ErrorAction SilentlyContinue

if(!$sc)
{
    Start-Process -FilePath "D:\Programy\StreamCompanion\osu!StreamCompanion.exe"
    Sleep 2
}
if(!$tablet)
{
    Start-Process -FilePath "D:\Programy\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe" -WorkingDirectory "D:\Programy\OpenTabletDriver\"
}
if(!$osuMissAnalyzer){
    Start-Process -FilePath "E:\Programy\osuMissAnalyzer\OsuMissAnalyzer.UI\bin\Release\net5.0\OsuMissAnalyzer.exe"
}
if(!$osuTrainer){
    Start-Process -FilePath "D:\Programy\osu-trainer\osu-trainer.exe"
}
if(!$osu){
    Start-Process -FilePath "E:\Gry\osu!\osu!.exe"
}