if (guna2ToggleSwitch1.
Checked)
{
if (Process.GetProcessesByName("HD-Player").Length == 0)
{
Console.Beep( 200,900);
}
else
{
memory.OpenProcess("HD-Player");
Int64 proc = Process.GetProcessesByName("HD-Player")[0].Id;
memory.OpenProcess((int)proc);
var result = await memory.AoBScan("00 00 00 00 00 00 A5 43 00 00 00
00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 80 BF", true, true);
if (result.Any())
{
foreach (var Current in result)
{
Int64 leitura = Current + 0x2c;
Int64 escri = Current + 0x28;
var Read = memory.ReadMemory<int>(leitura.ToString("X"));
memory.WriteMemory(escri.ToString("X"), "int", Read.ToString());
Console.Beep(200, 900);
}
else
{
Console.Beep(200, 9000);
}
}
}