Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember window position #7

Open
john-peterson opened this issue Jan 26, 2013 · 1 comment
Open

Remember window position #7

john-peterson opened this issue Jan 26, 2013 · 1 comment

Comments

@john-peterson
Copy link

Remember window position

Solution

A window position should be remembered because

  • a user often want to use the same window position for a process
  • some programs don't save size and position, f.e.
    • explorer.exe, winword.exe (opens additional windows 25 px right of the previous window)
    • mintty.exe (doesn't save position)

Implementation

It should be implemented as

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

  • it's rarely of interest to differentiate based on window title or class name
@thracx
Copy link
Contributor

thracx commented Feb 22, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants