private void Form1_FormClosing(object sender, FormClosingEventArgs e) { label1.Text = "Exiting..."; KeyboardHook.Stop(); if (checkBox1.Checked) { o.Dispose(); } if (t.IsAlive) { t.Abort(); } if (g.IsAlive) { g.Abort(); } }
private void button1_Click(object sender, EventArgs e) { try { BigHack = new Potatoe(); } catch (Exception ex) { MessageBox.Show(ex.InnerException.Message, ex.Message); label1.Text = "Error..."; return; } KeyboardHook.Start(); bool aim = false; bool recoil = false; g = new Thread(() => { while (true) { BigHack.Get(); if (checkBox2.Checked && b_KeyboardDown) { aim = BigHack.AimBot(); } if (checkBox3.Checked) { recoil = BigHack.AntiRecoil(aim); } if ((aim || recoil) && b_MouseDown) { BigHack.Set(); } } }); g.Start(); label1.Text = "Online."; panel1.Enabled = true; button1.Enabled = false; }