// Quit Application private void Quit() { updateStream.Abort(); //aimbotStream.Abort(); RPM.CloseProcess(); // Close main process Environment.Exit(0); }
// Update Thread private void Update(object sender) { Pimp pimp = new Pimp(Pimp.BlockMethod.Zero, true, true, false); if (pimp.Inject("bf4")) { while (IsGameRunning) { bool check = pimp.IsScreenShot(); if (!check) { rect.Width = overlay.Width; rect.Height = overlay.Height; d2d.BeginScene(); d2d.ClearScene(clearBrush); OverlayControl(); d2d.EndScene(); } } RPM.CloseProcess(); Environment.Exit(0); } }