I've never worked with AHK before but is something like this possible?
Things work normally as is, but a new property is introduced to the WinPos.txt file where you can assign a hotkey to a specific section which defaults to [Win] + 0.
Something like this (I know the key binding is not the correct syntax):
SECTION: Monitors=1,MonitorPrimary=1; Desktop size:0,0,2560,1440; Key:[Win]+[Shift]+1
Then, when you press that key combo it would launch that section's window layout.
Use case:
When you want to have 4 or 5 different layouts for different things and you want to jump between using them without having to manually copy / paste things around in the WinPos.txt file.
Workaround for now:
From what I gathered, the only way to do this now would be to:
-
Duplicate the current AHK script.
-
Assign a different key combo for the duplicate script (1 instead of 0 for example for save / restore).
-
Change WinPos.txt to be uniquely named (append a _1 or something to it).
-
Do business as usual and pick the layout you want on demand.
That's kind of a lot of duplication!