Witchy2
23 discussion posts
Hi folks,
I've been changing one of my 'move windows based on title' scripts and noticed that the 'list open windows' script available here for download is showing a lot of phantom windows that aren't visible, screenshot attached.
I have 3 screens - laptop (main, ID1) and two others which identify OK and work fine, both Display Port. Screen 3 is purely for a single Chrome instance and has nothing else running on it, but DF thinks otherwise. The attachment is from directly after a reboot so there should be nothing else running.
Any clues?
Cheers
A
Capture.JPG
Which scripting function are you using to get that list? GetAllWindowHandles, or GetVisibleWindowHandles?
Witchy2
23 discussion posts
Hi Keith,
It's solaris765's script from the download area here, it uses GetVibsibleWindowHandles. That script is from 2015 so DF8 and maybe pre-win10 so maybe there are tweaks I could do to it, I've not looked.
My own script on the other hand originally used GetAllWindowHandles and that caused some oddities too, it's amazing how many hidden windows are created by win10 even with no apps running.
Cheers
A
Ah yeah, a lot of apps (including DF) have visible windows that have no Window Text (like the DisplayFusion TitleBar Buttons, for example). If you only want to see windows that have an actual window title, you can update the for loop on line 23 with the code from the attached text file.
Hope that helps!
Witchy2
23 discussion posts
Ah right, yep, that works nicely.
Slightly concerned that there seems to be a 'Microsoft Store' active all the time that I can't see but this is obviously the insidious nature of win10 :/
cheers Keith!
Jan 19, 2018 (modified Jan 19, 2018)
•
#5