Bu kodlar ile pcdeki açık tüm koları bulur eklersiniz kullanımı kolay ilk önce projeye
Kod:
List<IntPtr> handles;
ekleyin sonra formun loadına
Kod:
foreach (Process process in Process.GetProcesses())
if (process.ProcessName == "KnightOnLine")
{
comboBox1.Items.Add(process.MainWindowTitle);
handles.Add(f.GetProcessHandle(process.MainWindowTitle));
}
ve bu kadar kullanımı
Kod:
public int ReadMemory(int Address, IntPtr Handle)
{
ReadProcessMemory(Handle(GameProcessHandle yerine), new IntPtr(Address), ReadBytesInt32, sizeof(Int32), 0);
return BitConverter.ToInt32(ReadBytesInt32, 0);
}
kullanımı = ReadMemory(0xC54F,handles[0]); gibi tüm charlara paket atmak için
Kod:
for (int i = 0; i < handles.Count; i++)
if (handles[i] != IntPtr.Zero)
SendPacket(packet, handles[i]);