Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
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
• Attachment: Capture.JPG [77,690 bytes]
Capture.JPG
Capture.JPG
Jan 17, 2018  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Which scripting function are you using to get that list? GetAllWindowHandles, or GetVisibleWindowHandles?
Jan 18, 2018  • #2
User Image
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
Jan 18, 2018  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
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!
• Attachment: forloop-update.txt [347 bytes]
Jan 19, 2018  • #4
User Image
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
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Haha yeah, it's crazy how many invisible "visible" windows Windows 10 creates. Whenever we create a Scripted Function that is supposed to do something with all visible windows, weird stuff happens with all the hidden Win 10 windows so we have to add all sorts of exceptions to the scripts :)
Jan 23, 2018  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)