I'm setting up a script to arrange a bunch of windows in specific locations.
The script mostly works, there's one issue I can't figure out: I usually have two or more Firefox windows open. I want to move all of them to the same location (having them overlap is not a problem)
I can move one window using this command:
WinMove, ahk_exe firefox.exe , ,960 ,180, 1600,1050
but how can I move all Firefox windows? They all have the same ahk_exe and ahk_class, the window title and pid are unpredictable.
Move multiple windows with the same name
Re: Move multiple windows with the same name
Use the List sub-command of WinGet to get a list of all windows that meet the criteria. You can then create a loop and move each one. Example #2 on that page shows how to set up such a loop.