Unless you're playing Bedrock, it'll always be a Javaw EXE process for Minecraft, regardless of a custom client/forge mod/fabric mod/modified optifine/etc. mod. That's just the Java process for anything java running
For this tool to work, its getting window titles from the process list.
Code:
string title = process[i].MainWindowTitle.ToLower();
if(title.Contains("minecraft")...
That code above searches for window titles via running processes. The process name will be Javaw.exe, with a window title of Minecraft
if its a legit copy of MC and not a modded client.
That's why my version above replaces it with
Code:
string title = processes[i].MainWindowTitle.ToLower();
if(title.Contains(fm.txt_MCTitle.Text)...
Now I can add my own window title to the text box marked "WindowTitle" and it will find the modded client I'm running if I put "wwe" in the text box.
If @
L4ndrum doesn't release an updated version with a fix like I applied, I'll probably do it and just credit him/her for the bulk of it