This code
should open four Explorer windows, each pointing to C:\, and tile them. What it does is open one window and move it around the screen.
However, if each of the
Run, explorer.exe statements points to a different drive (e.g., explorer.exe C:\, explorer.exe U:\, explorer.exe V:\, explorer.exe I:\), so that each window has a different title, it works. So evidentally WinMove grabs the first window it finds that matches the title rather than the last opened window? I was assuming WinWait should set the "Last Found" window to the last-opened window, which WinMove would then operate on.
Can WinMove point to different windows in tern when all the titles and class IDs are identical?
Code:
+^#z::
SetTitleMatchMode, 3
; Window 1
Run, explorer.exe C:\
WinWait C:\
WinMove, C:\, , 0, 0, 640, 467
; Window 2
Run, explorer.exe C:\
WinWait, C:\
WinMove, C:\, , 640, 0, 640, 467
; Window 3
Run, explorer.exe C:\
WinWait, C:\
WinMove, C:\, , 0, 467, 640, 467
; Window 4
Run, %windir%/explorer.exe C:\
WinWait, C:\
WinMove, C:\, , 640, 467, 640, 467
Return