private void Button3_Click(object sender, EventArgs e) { PrivateVariable.nospam = DateTime.Now; PrivateVariable.Battling = false; PrivateVariable.InEventScreen = false; PrivateVariable.InMainScreen = false; PrivateVariable.InMap = false; BotCore.EjectSockets(); Variables.ScriptLog("Script Stopped!", Color.White); if (Width > 1280) { Width -= 1280; panel3.Visible = false; } if (Variables.Proc != null) { DllImport.SetParent(Variables.Proc.MainWindowHandle, IntPtr.Zero); DllImport.MoveWindow(Variables.Proc.MainWindowHandle, PrivateVariable.EmuDefaultLocation.X, PrivateVariable.EmuDefaultLocation.Y, 1318, 752, true); Docked = false; } foreach (Control control in Debug.Controls) { control.Enabled = true; } ScriptRun.StopScript(); btn_Start.Enabled = true; Controls.Remove(tp); }