Search found 8 matches

by jeka
31 Mar 2018, 09:40
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Emacs tends to open quite slowly, and usually sets its initial window size after it is fully loaded. That means that v2 immediately moves/resizes Emacs window to its last known position (perfectly sensible) immediately upon Emacs launch, but then Emacs finishes loading and resizes its window to what...
by jeka
31 Mar 2018, 04:13
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Playing a bit more with v2, noticed that if I resize-reposition mintty.exe window in the main monitor, the position is remembered/restored. If I move mintty.exe to the secondary, then close and re-open, it opens up in the last position for the main monitor. Is this expected? EDIT: i updated -v2- po...
by jeka
30 Mar 2018, 11:35
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Here's how WindowSizePosLog.ini looks after frist running v2 then OP, perhaps it will shed some light. [managed processes] mintty.exe=mintty.exe,451,1446,515,12,mintty,0x14EF0000 gvim.exe=gvim.exe,415,813,6,329,Vim,0x16CF0000 notepad.exe=notepad.exe,484,1099,21,73,Notepad,0x14CF0000 [Process Names] ...
by jeka
30 Mar 2018, 11:32
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Update: the OP version works correctly across both displays.
by jeka
30 Mar 2018, 11:28
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Playing a bit more with v2, noticed that if I resize-reposition mintty.exe window in the main monitor, the position is remembered/restored. If I move mintty.exe to the secondary, then close and re-open, it opens up in the last position for the main monitor. Is this expected?
by jeka
30 Mar 2018, 11:20
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

So in a nut shell if you want the -v2- version to manage any window, just add the exe of the process the window belongs to, to the managedProcesses variable which should be near the top of the script, it's this line: managedProcesses = xulrunner.exe,firefox.exe,notepad.exe,chrome.exe,notepad++.exe,...
by jeka
30 Mar 2018, 07:48
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

I wonder why this script does not launch (I don't see AutoHotkey icon in the system tray). Because, I don't understand why but inside the script there is #NoTrayIcon. :) I see. Thanks. Still, I don't see any effect of the script AutomaticWindowManager-v2, but the very AutomaticWindowManager script ...
by jeka
30 Mar 2018, 05:32
Forum: Scripts and Functions
Topic: Automatically Restore Last Window Position For Each Process
Replies: 50
Views: 10145

Re: Automatically Restore Last Window Position For Each Process

Rewrote my version of the OP, it took more code than the 50 lines i was hoping for the rewrite, and even ended up being more than the original code, to make it easier to maintain, more efficient & easier to modify for anyone who wants to modify to their whims. It now uses ProcessName,ClassName,Wind...

Go to advanced search