Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <summary>
 /// Enables the SF4 Window bringing it to the foreground.
 /// </summary>
 public void EnableWindow()
 {
     NativeModel.SetForegroundWindow(_gameProcessMainWindowHandle);
     NativeModel.ShowWindow(_gameProcessMainWindowHandle, 1);
 }