private string GetActiveWindowTitle() { const int nChars = 256; StringBuilder Buff = new StringBuilder(nChars); IntPtr handle = MemoryEdits.GetForegroundWindow(); if (MemoryEdits.GetWindowText(handle, Buff, nChars) > 0) { return(Buff.ToString()); } return(null); }
public static void BringToForeground() { var WINDOW_HANDLER = MemoryEdits.FindWindow(null, @"Rocket League (32-bit, DX9)"); if (WINDOW_HANDLER == 0) { } else { MemoryEdits.SetForegroundWindow((IntPtr)WINDOW_HANDLER); MemoryEdits.ShowWindow(WINDOW_HANDLER, 9); } }