message-2
message-2
Checked == true)
{
originallvalues.Clear();
originalValues.Clear();
originalValues2.Clear();
originallValues2.Clear();
status.Text = "APPLYING...";
status.ForeColor = Color.Yellow;
// Initialize and start the stopwatch
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
Abnormal.OpenProcess(proc);
Abnormal.WriteMemory(chestBytes.ToString("X"), "int",
Read.ToString());
Abnormal.WriteMemory(headBytes.ToString("X"), "int",
Read2.ToString());
status.ForeColor = Color.Green;
}
else
{
// Handle error case
stopwatch.Stop(); // Ensure stopwatch stops even in error cases
Console.Beep(2000, 400);
status.Text = "ERROR: No results found.";
status.ForeColor = Color.Red;
}
}
}