예제 #1
0
파일: Form1.cs 프로젝트: Foopy969/calc2
 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();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: Foopy969/calc2
        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;
        }