private void SendCommandAndSwitchWindows(string command) { ClearCurrentLineMarker(); ChangeDebugState(DebugState.Running); if (_engineWindowHandle != IntPtr.Zero) { NativeProxy.SetForegroundWindow(_engineWindowHandle); } _communicator.SendMessage("<Engine Command=\"" + command + "\" />"); }
private void SendCommandAndSwitchWindows(string command) { ClearCurrentLineMarker(); ChangeDebugState(DebugState.Running); if (_engineWindowHandle != IntPtr.Zero) { if (Utilities.IsMonoRunning()) { //Is there any way of doing this in mono? I couldn't find any. //I guess the user will have to bring the game back to focus by himself... } else { NativeProxy.SetForegroundWindow(_engineWindowHandle); } } _communicator.SendMessage("<Engine Command=\"" + command + "\" />"); }