Getting excluded monitors via script ?
Posted: 12.05.2013 19:36:53
Firstly thanks for this program, it's an amazing piece of software.
I was wondering if there is a way to determine if a monitor is excluded or not via a script ?
Reason for asking this, is I've made a script (in Lua) which minimises/maximises all windows on the desktop which currently has the mouse on it (i.e. for multiple monitors) only it does strange things with dexpot. If the windows are minimised on virtual desktop 1 then the virtual desktop is changed (say to 2), the script will restore the windows from desktop 1 onto desktop 2 instead of minimise desktop 2 (kind of expected I guess as they are still both the same monitor), a subsequent desktop change will actually reset the windows to their original desktops but anyway I can fix that by getting the current dexpot desktop number (using code I found in another thread on this forum). However If I fix that part it will mess up my excluded monitor, unless I can determine which monitors are excluded or included in the dexpot settings.
I'm aware I could simply hard-code the Lua script to ignore the excluded monitor but figured I'd ask the question as doing it with calls from the script would be a better solution than hard-coding it, assuming it's possible.
I was wondering if there is a way to determine if a monitor is excluded or not via a script ?
Reason for asking this, is I've made a script (in Lua) which minimises/maximises all windows on the desktop which currently has the mouse on it (i.e. for multiple monitors) only it does strange things with dexpot. If the windows are minimised on virtual desktop 1 then the virtual desktop is changed (say to 2), the script will restore the windows from desktop 1 onto desktop 2 instead of minimise desktop 2 (kind of expected I guess as they are still both the same monitor), a subsequent desktop change will actually reset the windows to their original desktops but anyway I can fix that by getting the current dexpot desktop number (using code I found in another thread on this forum). However If I fix that part it will mess up my excluded monitor, unless I can determine which monitors are excluded or included in the dexpot settings.
I'm aware I could simply hard-code the Lua script to ignore the excluded monitor but figured I'd ask the question as doing it with calls from the script would be a better solution than hard-coding it, assuming it's possible.