ArrangeWindows Icon
ArrangeWindows

Window Grid Tiler

Core API Hook: SetWindowPos / DeferWindowPos (User32.dll)

Instantly move, tile, resize, or snap focused application windows across grids or multiple connected displays.

Configuration Parameters

Parameter Type Description
Target string Snapping alignment trigger mode: 'Maximize', 'Minimize', 'LeftHalf', 'RightHalf', or custom grid bounds (e.g. '0,0,50,100').
Arguments string Identify display focus target: 'CurrentDisplay', 'NextDisplay', or specific display IDs.

config.json Mapping

{
  "Type": "ArrangeWindows",
  "Name": "Tile Window Left",
  "Target": "LeftHalf",
  "Arguments": "CurrentDisplay"
}

Save inside database layout actions configuration map.

Native Execution Hook

// ArrangeWindows execution logic
var hwnd = Win32.GetForegroundWindow();
var screen = Screen.FromHandle(hwnd);
int targetX = screen.Bounds.X;
int targetY = screen.Bounds.Y;
int targetWidth = screen.Bounds.Width / 2;
int targetHeight = screen.Bounds.Height;

Win32.SetWindowPos(hwnd, IntPtr.Zero, targetX, targetY, targetWidth, targetHeight, Win32.SWP_NOZORDER | Win32.SWP_SHOWWINDOW);

Executed within IsoCore remapping runtime loop.

← Back to Actions Directory IsoKey Module: ArrangeWindows