#Include<GridGUI>SetBatchLines,-1CoordMode,Mouse,ScreenmyGui:=newGridGUI("Example Window Grid","resize")myGui.GuiClose:=GridGUI.ExitAppmyGui.Show("w800 h800")column:=0row:=1MaxColumn:=4return*~LButton::MouseGetPos,x,y,hwnd ; Uncomment this if you don't like cool stuffif(hwnd=myGui.hwnd){return}SendMessage,0x84,0,(x&0xFFFF)|(y&0xFFFF)<<16,,%"ahk_id "hwndRegExMatch("ERROR TRANSPARENT NOWHERE CLIENT CAPTION SYSMENU SIZE MENU HSCROLL VSCROLL MINBUTTON MAXBUTTON LEFT RIGHT TOP TOPLEFT TOPRIGHT BOTTOM BOTTOMLEFT BOTTOMRIGHT BORDER OBJECT CLOSE HELP","O)(?:\w+\s+){".ErrorLevel+2&0xFFFFFFFF."}(?<AREA>\w+\b)",HT)if(ht["area"]="CAPTION"){While(GetKeyState("LButton","P")&&x=_x&&y=_y){ ;Wait until user begins draggingMouseGetPos,_x,_y}WhileGetKeyState("LButton","P"){ ;Show ToolTip while draggingMouseGetPos,_x,_y}if(myGui.pos.Contains(newGridGUI.Position(_x,_y))){window:=newGridGUI.WindowControl(myGui.hwnd,hwnd)column++if(column=MaxColumn){column:=1row++}myGui.AddControl(column,row,window,1,1,1,1)myGui.ReDraw()}}Return