Example #1
0
        private void HideIfInactive(object sender, EventArgs e)
        {
            if (!Properties.Settings.Default.AutoHideWindow)
            {
                return;
            }
            string title = WindowsServices.GetActiveWindowTitle();

            if (title != "OverParse" && title != "Phantasy Star Online 2")
            {
                this.Opacity = 0;
            }
            else
            {
                HandleOpacity();
            }
        }
Example #2
0
        private void HideIfInactive(object sender, EventArgs e)
        {
            if (!Properties.Settings.Default.AutoHideWindow)
            {
                return;
            }
            string title = WindowsServices.GetActiveWindowTitle();

            string[] relevant = { "OverParse", "OverParse Setup", "OverParse Error", "Encounter Timeout", "Phantasy Star Online 2" };
            if (!relevant.Contains(title))
            {
                Opacity = 0;
            }
            else
            {
                HandleWindowOpacity();
            }
        }