/// <summary> /// The focus street fighter message handler. /// </summary> /// <param name="message"></param> public void Handle(FocusStreetFighterMessage message) { Process[] processes = Process.GetProcessesByName("SSFIV"); if (processes.Length > 0) { NativeModel.SetForegroundWindow(_gameProcessMainWindowHandle); NativeModel.ShowWindow(_gameProcessMainWindowHandle, 1); } }
/// <summary> /// Enables the SF4 Window bringing it to the foreground. /// </summary> public void EnableWindow() { NativeModel.SetForegroundWindow(_gameProcessMainWindowHandle); NativeModel.ShowWindow(_gameProcessMainWindowHandle, 1); }