示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }