Categories > Coding > C# >

Check if RobloxPlayerBeta is running

Posts: 9

Threads: 4

Joined: Dec, 2020

Reputation: 0

Posted

i wanna check if robloxplayerbeta is open while my programm is running. Like when i open my Exploit and then open Roblox, it should check if the process runs? how to do it?

  • 0

i am c# dev whatsoever

Moon

Moon

vip

Posts: 6198

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

Ctrl + Shift + Esc

  • 0

eb_

Formally known as Shade

vip

Posts: 922

Threads: 4

Joined: Jun, 2020

Reputation: 44

Replied

if (Process.GetProcessByName("RobloxProcessHere").Length > 0) // If there is a process then it will do:

{

 // Code if there is a process

}

else // else if the isn't a process then it will do:

{

 // Code if there isn't a process

}

  • 0

https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif

Moon

Moon

vip

Posts: 6198

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

@eb_

wait what

  • 0

Posts: 675

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

private bool IsRunnin() {
    Process[] proc = Process.GetProcessesByName("RobloxPlayerBeta");

    if (proc.Length == 1
    {
        return true;
    }

    return false;
}

private void Example() {
    if (IsRunnin()) 
    {
        //do something if found
    }
    else
    {
         //do something if not found
    }
}
 
ofc there's more way but I like to do it my way
  • 0

Moon

Moon

vip

Posts: 6198

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

@MaximusExploit

YOU'RE DESTROYING TASK MANAGER!

  • 0

Wabz

Winning.js

Posts: 1968

Threads: 143

Joined: Apr, 2020

Reputation: 27

Replied

@MaximusExploit what if there's 2 roblox processes running?

i'd use >=

also just return the thing in the function instead  of doing true false

  • 0

Added

private bool IsRunnin() {

    Process[] proc = Process.GetProcessesByName("RobloxPlayerBeta");

    return proc.Length >= 1;

}

  • 0

My new discord is Wabz#1337 with ID 777154062789509130

Posts: 675

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

@Wabz why would you use 2 roblox anyways lol

  • 0

Wabz

Winning.js

Posts: 1968

Threads: 143

Joined: Apr, 2020

Reputation: 27

Replied

@MaximusExploit multiple roblox games?

  • 0

My new discord is Wabz#1337 with ID 777154062789509130

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )