Profile Picture

Iskra_ND

Reputation: 3 [rate]

Joined: Apr, 2023

Last online:

Badges

badge

Etc

Send Message

Threads List
Possible Alts

Activity Feed

Replied to thread : Kato Android


because im the best and everything i touch becomes the best mate

Created a new thread : Kato Android


https://kato.wtf

 

https://cdn.discordapp.com/attachments/1032438378400059444/1103134940033466408/Frame_1.png

Commented to thread : Cheapest Mod Menus | Vitalmods.pro


god youre cringe flexing how many posts you have on a forum

Replied to thread : hey alexa! whats the best way to make auto attach


@reversed_coffee, I don't know why youre acting like such a smart ass when in reality you said a whole bunch of nonsense, 

 

anyway as for the advice you gave, you don't have to check for debugger thats stupid and inefficient and everything about that doesn't make sense why would you do that

 

I also don't see how making a new thread (which is stupid either way) would block any sort of task like updating, the whole point of multi-threading

 

 

 

 

s asynchrounity, apart from that use tasks not new Thread because that makes a new system thread which is inefficient,

 

as for "spoonfeeding" this is the most annoying anwser you can possibly give, not only because everything you said was pretty much incorrect, but also as for an actual decent solution here:

 

 
public class ProcessWatcher
{
public Process Process = new Process();
public delegate void Delegate(Process process);
public event Delegate Created;
public bool GetProcess(string processName)
{
Process[] processes = Process.GetProcessesByName(processName);
if (processes.Length < 1)
return false;
foreach (var process in processes)
{
if (String.IsNullOrWhiteSpace(process.MainWindowTitle))
continue;
Process = process;
return true;
}
return false;
}
public void Auto()
{
do
Thread.Sleep(2000);
while (!GetProcess());
Created?.Invoke(Process);
Process.EnableRaisingEvents = true;
Process.Exited += (ignore, ignore2) =>
Auto();
}
}