Example #1
0
        private void isTTRRunning()
        {
            ProcessStartInfo startInfo = new ProcessStartInfo("Toontown Rewritten [BETA]");
            DialogResult     confirmation;

            while (!(Process.GetProcessesByName("TTREngine").Length > 0))
            {
                confirmation = MessageBox.Show("Press OK once running or Cancel.", "ToonTown Rewritten is not running!", MessageBoxButtons.OKCancel);
                if (confirmation.Equals(DialogResult.Cancel))
                {
                    Environment.Exit(0);
                }
            }
            BotFunctions.maximizeTTRWindow();
        }