Hy-T3k R3dneck
4 discussion posts
I've been using the "Move All Windows to Current Monitor" to accomplish moving all my windows to my primary monitor. What I don't like about doing this is I have to use the titlebar button from a window on my primary monitor to ensure that everything ends on the primary monitor (because of the current monitor) and even when I do that it unminimizes (does not affect location or size of windows thought) my minimized windows on my primary monitor (or whichever I were to trigger it on).
I saw that I could create a custom function that would move the window to the primary monitor (not current monitor like the function i'm using now does) but that does not move all windows. How can I make it so I can move all Windows located on secondary, tertiary (and so on) monitors to the Primary monitor without affecting any of the windows on the Primary monitor? I did search the discussion forums and didn't find what I'm looking for so I apologize in advance if this was answered somewhere else and I missed it. Any help would be greatly appreciated.
There isn't a built-in way of doing that actually, though it's a good idea, so I've added it to our feature request list. In the meantime, it can be done with a Scripted Function. What are the monitor IDs of each monitor, and which monitor ID is primary?
Hy-T3k R3dneck
4 discussion posts
I have monitors 1-3 and 1 is the primary.
Hy-T3k R3dneck
4 discussion posts
It solved part of the problem. I can now click on the title bar button on any window on any monitor (versus having to click on "Move All Windows To Current Monitor" on the primary monitor) and they all move to the primary monitor but it still restores minimized windows on the primary monitor and I don't want minimized windows on the primary monitors to be restored.
Basically, I'm looking to move all windows, not in the primary monitor to the primary monitor and do nothing to the windows already in/on the primary monitor (since they are already there, minimized or not). I hope that makes more sense. Thanks again for your help with this.
Ok, there was an issue in the script that I fixed, but this still happens for another reason. When a window is minimized, it returns as being on monitor 0, so I can't tell if it's minimized on the primary or on some other monitor without restoring it first. Are there minimized windows on the other monitor that you want moved to the primary, or are the windows always restored? If there aren't any minimized windows on the non-primary monitor, I can make it so that it only moves the non-minimized windows, which should solve this for you.
Hy-T3k R3dneck
4 discussion posts
"Are there minimized windows on the other monitor that you want moved to the primary, or are the windows always restored?"
Yes, there often are minimized windows on non-primary monitors. In all my setups I've never seen a monitor 0 yet. If monitor 0 is usually the minimized windows on the primary display (my monitor 1) could the script just ignore those windows and I bank on the fact that none of my monitors have had (or hopefully will not have) a monitor ID of 0?
The problem is that minimized windows always return monitor 0, regardless of what monitor they're on. However, we may have found a way to resolve this issue. I will let you know as soon as we have a new test build available to try out.
Thanks!
Ok, could you try updating to 9.4 Beta 4 and then try this script again? It should now hopefully be able to get the proper monitor ID for minimized windows too.
I will check with our developers to see if it would be possible to make it work that way. If we can't update the built-in function, it may be possible with a scripted function. I'll keep you posted when I have more news.
Thanks!
Sounds like we should be able to make that change. We've added it to our list and we'll follow-up if/when we're able to implement it.
Thanks!
TechLobo
7 discussion posts
Glad to hear that - hopefully it won't take too long!
Thanks.