Studio Presence With Auto Launch

NOTE THIS IS FOR WINDOWS USERS LINUX AND MAC COMING SOON

So if you know what Studio Presence is its basically a program that shows that you are scripting in roblox studio. One problem I found is how I need to launch two separate files. My workaround to this was making a C# program to launch both Studio and Studio Presence at the same time. I forked it and I’m waiting for a response from the original developer to add this to there main branch. While the source code is in the github I might as well show you the code here.

Instrctions in README IN THE DOWNLOAD ZIP

The post I referenced from
Download Github Link
Original Program that I forked from
C# Source

using System;
using System.Diagnostics;
using System.Reflection;
using IWshRuntimeLibrary;

namespace RobloxStudioLauncher
{
    class Program
    {
        static void Main(string[] args)
        {
            string shortcutFilename = "Roblox Studio.lnk";

            #pragma warning disable CS8600
            string exepath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            #pragma warning restore CS8600

            #pragma warning disable CS8602
            string SP = exepath.ToString() + "/SP.exe";
            #pragma warning restore CS8602

            string desktopFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

            string robloxStudioShortcutPath = System.IO.Path.Combine(desktopFolderPath, shortcutFilename);

            Process proc = new Process();
            proc.StartInfo = new ProcessStartInfo(robloxStudioShortcutPath)
            {
                UseShellExecute = true
            };
            proc.Start();

            Process _SP = new Process();
            _SP.StartInfo = new ProcessStartInfo(SP)
            {
                UseShellExecute = true
            };
            _SP.Start();
        }
    }
}

3 Likes

And what if the program is already opened?

1 Like

Crap forgot about that ill try to fix it