Hello, I put this at the top of my project:
Here is the sub that contains the process name check:
No errors, but it only checks the lowercase hack/cheat/inject. I need it to be case insensitive when checking it. Any help, please? It is very urgent :| Thanks.
UPDATE: Figured it out and tested and it works. I put, right after dim procname...
^^ works great, thanks anyway all I hope this helps someone.
VB.NET:
Option Compare Text
Here is the sub that contains the process name check:
VB.NET:
Sub AC3()
Dim ProcessList As System.Diagnostics.Process()
ProcessList = System.Diagnostics.Process.GetProcesses()
Dim Proc As System.Diagnostics.Process
For Each Proc In ProcessList
Dim procname As String = Proc.ProcessName
Dim string1 As String = "hack"
Dim string2 As String = "cheat"
Dim string3 As String = "inject"
If procname.Contains(string1) Or procname.Contains(string2) Or procname.Contains(string3) Then
killProcess("M2F")
killProcess("ac2.exe")
System.Diagnostics.Process.GetCurrentProcess.Kill()
End If
Next
End Sub
No errors, but it only checks the lowercase hack/cheat/inject. I need it to be case insensitive when checking it. Any help, please? It is very urgent :| Thanks.
UPDATE: Figured it out and tested and it works. I put, right after dim procname...
VB.NET:
procname = procname.ToLower()
Last edited: