//object sender, EventArgs e) public void startScriptThread() { ScriptConsole console = new ScriptConsole(); Script t = new Script(true); console.SetScript(script); /*try { command = File.ReadAllText("videoDirections.txt"); } catch (Exception ex) { MessageBox.Show("Failed to open script file due to exception: " + ex.Message); return; }*/ /*scriptThread = new System.Threading.Thread(new System.Threading.ThreadStart(run_selected_script)) { IsBackground = true, Name = "Script Thread (new)" };*/ timerThread = new System.Threading.Timer(run_selected_script_callback, null, 0, 1000); //labelScriptStatus.Text = "Script Status: Running"; script = null; //outputwindowstarted = false; //scriptThread.Start(); scriptRunning = true; CustomMessageBox.Show("script thread started"); //scriptChecker.Enabled = true; //checkBoxRedirectOutput.Enabled = false; //remember this //scriptThread.Abort(); }