C
C#•4y ago
Pobiega

Getting proccess by name

Can you share your code so far?
32 Replies
TroflineBlack
TroflineBlack•4y ago
ohh all i have so far is this since i deleted my code since it wasnt working..
TroflineBlack
TroflineBlack•4y ago
i can write what ive tried sec..
Pobiega
PobiegaOP•4y ago
Please do. Include all the code for detecting the process, thats the important bit
TroflineBlack
TroflineBlack•4y ago
Pobiega
PobiegaOP•4y ago
"CheatIndicator"?
TroflineBlack
TroflineBlack•4y ago
detecting if cheat is running it checks some stuff if smbds uses cheat.. imma try to do an "anticheat"
TroflineBlack
TroflineBlack•4y ago
thats also why i opened another post with this here :3 this is the forms that is getting opened in the cheatindicator method.. it should stay topmost so it runs over the game as a little dot upper left that is lighting green if the dude is speedrunning legit and red for cheating..
Pobiega
PobiegaOP•4y ago
Alright. Well, where you current just have "CheatIndicator" is where you'd need to put the processname of the cheat application
TroflineBlack
TroflineBlack•4y ago
well imma try with this code if it works :3 if it detects the process
Pobiega
PobiegaOP•4y ago
var processes = Process.GetProcessesByName("Notepad");

if (processes.Length > 0)
{
Console.WriteLine("Notepad is running!");
}
var processes = Process.GetProcessesByName("Notepad");

if (processes.Length > 0)
{
Console.WriteLine("Notepad is running!");
}
this works fine for me
TroflineBlack
TroflineBlack•4y ago
okay ill replace it with this.. gimme a sec ^^ var processes = Process.GetProcessesByName("Notepad"); if (!processes.Length > 0) { Console.WriteLine("Notepad is running!"); } works fine too? with the "!" ohh no..
Pobiega
PobiegaOP•4y ago
no if you want to say "notepad is NOT running", then just change the condition to be processes.Length == 0
TroflineBlack
TroflineBlack•4y ago
okay.. imma try
Pobiega
PobiegaOP•4y ago
but be warned, this is a very very simple "anticheat" and getting around it is near trivial anyone who wants to cheat will still be able to
TroflineBlack
TroflineBlack•4y ago
ye i dont know anything else how to do a better one 😄 do you have a better idea and would like to help me there? :3
Pobiega
PobiegaOP•4y ago
Nope. Anticheat is an incredibly complex topic, and to do it "properly" usually involves writing custom kernel drivers I know nothing about the topic except that its hard, borderline impossible to keep dedicated cheaters out
TroflineBlack
TroflineBlack•4y ago
hmm okay.. atleast i can check the processess for the names and kill the cheaters that dont know coding and that are using cheats for the game that are online a bit.. hope they dont rename it xD
Pobiega
PobiegaOP•4y ago
best of luck.
TroflineBlack
TroflineBlack•4y ago
haha.. okay trying the code now and it worked :3 one more last thing 😄 do you know how to keep a form in wpf topmost? :3
Pobiega
PobiegaOP•4y ago
nope, dont do wpf
TroflineBlack
TroflineBlack•4y ago
aight.. still a lots of thanks mate^^ you guys already helped me further then all the other servers 😄
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
TroflineBlack
TroflineBlack•4y ago
for what is this? :3
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
TroflineBlack
TroflineBlack•4y ago
ahh :3 thanks a lot mate^^ thanks 😄
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
TroflineBlack
TroflineBlack•4y ago
so thats not wpf? i can directly put it into my console application?
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
TroflineBlack
TroflineBlack•4y ago
im confused what you mean hah never heard of that before 😄
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
TroflineBlack
TroflineBlack•4y ago
uff.. thats a bit out of my knowledge of programming.. but that would be cool having a little small green dot on the game.. so it should work with that ig.. wouldx you like to help me later on? i got some training in 10 mins so i cant do it now 😄 could take some hours.. ill write you if you dont mind..
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?