M
mistatic
Guest
That is impressive setup mate.Code:using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; namespace Resizer { static class Program { static void Main() { System.Drawing.Rectangle screen = Screen.PrimaryScreen.WorkingArea; Process[] wows = Process.GetProcessesByName("Wow"); int x = 0; int y = 0; int count = 0; foreach(Process p in wows) { MoveWindow(p.MainWindowHandle, ((screen.Right - screen.Right / 4) - x), ((screen.Bottom - screen.Bottom / 3) - y), (screen.Right / 4), (screen.Bottom / 3), true); count++; if(count % 4 == 0) { x = 0; y += screen.Bottom / 3; } else { x += screen.Right / 4; } } } [DllImport("user32.dll", SetLastError = true)] public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); } }
Resizes windows relative to screen resolution so it's always in a 4x3 grid (since I have 3 PC's all with different resolutions).
![]()