Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Last window in WinPos.txt becomes active #6

Open
teknowledgist opened this issue Sep 22, 2017 · 2 comments
Open

Last window in WinPos.txt becomes active #6

teknowledgist opened this issue Sep 22, 2017 · 2 comments

Comments

@teknowledgist
Copy link

When I "Restore Screens", the windows cycle through opening and resizing and (if they are minimized) returning to minimal status. However, the last window in the WinPos.txt always becomes active (not the previously active window). That's not a big deal except the last one in my list happened to be minimized, so it opens, resizes, minimizes and then re-opens. If I move it to another location in the list, it stays minimized.

The code looks good to me (being inexperienced with AHK), but something is not working as intended.

@rwese
Copy link
Owner

rwese commented Sep 22, 2017 via email

@rwese
Copy link
Owner

rwese commented Sep 22, 2017

yea... minimized windows behave strange.
I will try rework this to be more robust.

Idea:
Sort saved windows by state

  1. -1 minimized
  2. 1 maximized
  3. 0 other

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

No branches or pull requests

2 participants