hoppfrosch / WindowPadX

Enhancements on original WindowPad (by Lexikos)
http://hoppfrosch.github.com/WindowPadX
225 stars 41 forks source link

Remember window position #7

Open john-peterson opened 11 years ago

john-peterson commented 11 years ago

Remember window position

Solution

A window position should be remembered because

It should be implemented as

Identification by process name (rather than also window title and class name) is adequate because

thracx commented 8 years ago

To solve this same problem, I use 'Toggle' AHK actions which launch+move windows to where I want them. If the window is already opened, the script simply does a Show/Hide toggle on it. I've been using this for years so I have a 'hotkey' for each of the primary applications I use (File Browser, Web Browser, Notepad++, etc), but it also doubles as a 'location' memory for each of these since the script always re-positions & re-sizes these windows.

It's not a generic solution by any means, but if you happen to still be interested in something to save window positions, let me know and I'll post the relevant sections of my script for you to use.