johnboy691 Posted November 1, 2010 Report Share Posted November 1, 2010 I have two monitors.(1 and 2) I have 1, which is my laptop and primary screen which is set at a different resolution than screen 2 a 17" led montior set at a different resolution (for easier reading.) I know how to capature the resolution using the integer variable; but how can I capture which monitor has the program active. For example, if I want to open internet explorer and a specific url site, it will launch and activate in the monitor where the last internet explorer was closed. That is fine, I just need a way to determine which monitor the newly launched internet explorer window is opened on. Any ideas? Quote Link to comment Share on other sites More sharing options...
acantor Posted November 2, 2010 Report Share Posted November 2, 2010 I am thinking out loud, have never tried anything like this.... Use macros triggered by Events (System Events: Resolution Change? Incoming Message? but more likely Process Event) to monitor when processos are launched and closed. Control events might work, although I foresee complications... On closing a process, check the screen resolution, and save one (or both? results as an integer variable into either into the registry, or a file. When opening, check the previously saved screen resolution value or values. If they match, you are on the same monitor, so move window to this monitor. Else move it to the other. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.