private void Btn_Activate_Click(object sender, EventArgs e) { // Enable Debug Privilige EnableDebugPriv(); // Get Window Handle hwnd = FindWindow("TXGuiFoundation", "Gameloop【Turbo AOW Engine】"); Console.WriteLine(hwnd); if (hwnd == IntPtr.Zero) { hwnd = FindWindow("TXGuiFoundation", WINDOW_NAME_G); if (hwnd == IntPtr.Zero) { MessageBox.Show("Please Open Emulator First!!!"); return; } } hwnd = FindWindowEx(hwnd, 0, "AEngineRenderWindowClass", "AEngineRenderWindow"); // Find true aow_exe process var aowHandle = FindTrueAOWHandle(); // Initialize Memory Mem.Initialize(aowHandle); if (Mem.m_pProcessHandle == IntPtr.Zero) { MessageBox.Show("Error", "Cannot initialize simulator memory, please restart simulator then retry"); return; } else { // Initialize SigScan sigScan = new SigScanSharp(Mem.m_pProcessHandle); } // Find UWorld Offset ueSearch = new GameMemSearch(sigScan); var cands = ueSearch.ViewWorldSearchCandidates(); viewWorld = ueSearch.GetViewWorld(cands); uWorld = viewWorld - 4217216; gNames = viewWorld - 1638204; if (uWorld > 0) { // Start Drawing ESP LoopTimer.Enabled = true; UpdateTimer.Enabled = true; GetWindowRect(hwnd, out rect); espForm = new ESPForm(rect, ueSearch); aimbotForm = new AimbotForm(rect, ueSearch); new Thread(ESPThread).Start(); new Thread(AimbotThread).Start(); new Thread(InfoThread).Start(); Btn_Activate.Enabled = false; Btn_Activate.Text = "Injected"; } else { MessageBox.Show("Unable to initialize, please check if simulator and game is running"); } }
public GameMemSearch(SigScanSharp sgn) { this.sgn = sgn; }
private void button6_Click(object sender, EventArgs e) { Process.Start(@"DriverInstaller.exe"); string filepath = (@"C:\JOY X.dll"); if (File.Exists(filepath)) { File.Delete(filepath); } if (!File.Exists(@"C:\JOY X.dll")) { using (WebClient client = new WebClient()) { client.DownloadFile("http://www.joycheat.com/wp-content/uploads/2020/11/JOY-X.dll", @"C:\JOY X.dll"); } } // Enable Debug Privilige EnableDebugPriv(); // Get Window Handle // hwnd = FindWindow("TXGuiFoundation", WINDOW_NAME); Process[] processesByName = Process.GetProcessesByName("ProjectTitan"); if (this.hwnd == IntPtr.Zero) { if (processesByName.Length == 1) { this.hwnd = MainForm.FindWindow("TitanRenderWindowClass", Process.GetProcessesByName("ProjectTitan")[0].MainWindowTitle); } Process.GetCurrentProcess().ProcessorAffinity = (IntPtr)3; } this.hwnd = MainForm.FindWindowEx(this.hwnd, 0U, "TitanRenderWindowClass", "SmartGaGa RenderWindow"); Mem.Initialize(this.FindTrueAndroidProcessHandle()); if (Mem.m_pProcessHandle == IntPtr.Zero) { int num1 = (int)MessageBox.Show("Please Open Emulator First !", "ERROR"); } else { // Initialize SigScan sigScan = new SigScanSharp(Mem.m_pProcessHandle); } // Find UWorld Offset ueSearch = new GameMemSearch(sigScan); var cands = ueSearch.ViewWorldSearchCandidates(); viewWorld = ueSearch.GetViewWorld(cands); uWorld = viewWorld - 4416288; gNames = viewWorld - 4453088; if (uWorld > 0) { // Start Drawing ESP LoopTimer.Enabled = true; UpdateTimer.Enabled = true; GetWindowRect(hwnd, out rect); espForm = new ESPForm(rect, ueSearch); new Thread(ESPThread).Start(); new Thread(InfoThread).Start(); ; } else { MessageBox.Show("Unable to initialize, please check if simulator and game is running"); } }