Help-

02/02/2010 23:30 -Shunsui-#1
How can i make it so when i Click the X at the Top Right of the Console it automaticly sends messages saying Blabla saved, and it exits saving everthing, Its just like the /exit command
02/03/2010 00:17 ImmuneOne#2
As far as I know I never did such a thing, so I deny it's existence.
What you can do is the following, handle hotkeys.

Code:
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData) 
        { 
            switch (keyData) 
            {
                case Keys.Control | Keys.Escape:
                    {
                        // Save everything.
                        Environment.Exit(1);
                        return true;
                    }
            } 
            return false; 
        }