Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

p.s. Unfortunately, I don't know Python, but this short C# program works on both Windows and Linux (of course, with the appropriate runtime: DotNet for Windows, Mono for Linux. But the concept is the same of Python, which has its own runtime).

It detects your user name and if you have OBS Studio running:

using System;

using System.Linq;

using System.Diagnostics;

internal class Program

{

    public static void Main(string[] args)

    {

Console.WriteLine("JUST MONIKA");

Console.WriteLine($"I'm talking to YOU, {Environment.UserName}");

var obsList = Process.GetProcessesByName("obs")

.Concat(Process.GetProcessesByName("obs64")).ToList();

if (obsList.Count > 0)

{

Console.WriteLine("Are you recording me?");

}

else

{

Console.WriteLine("Let's talk forever, sweetheart!");

}

Console.WriteLine("p.s. JUST MONIKA");

}

}


Fun fact: with C#, you don't need to specify the ".exe" suffix... not even on Windows! 

But maybe Python is different...