I wrote some code that theoretically would do this, but it doesn't actually do anything when I run it. Can anyone help me with this?
Code: Select all
;move all windows to main monitor and maximize
#PgUp::
SysGet, Coord, monitor ;find coordinates of main monitor
WinMinimizeAllUndo ;restore all
UniqueID := WinExist("A") ;store active window
WinActivateBottom, i)[a-z]* ;activate oldest window
while UniqueID <> WinExist("A") ;until you loop back to the stored window
{
WinMove, %CoordLeft%, %CoordTop% ;move to main monitor
WinMaximize, A ;maximize
WinActivateBottom, i)[a-z]* ;activate next oldest
}