Processing Ajax...
Save 25% on our desktop apps during our Black Friday/Cyber Monday sale!Save 25% on our desktop apps during our Black Friday/Cyber Monday sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save 25% on our desktop apps during our Black Friday/Cyber Monday sale!

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Close Window script or trigger that would effect only one monitor.

User Image
BradBardoon
11 discussion posts
I noticed that there's only two main Close Window script available for download; Close Window based on which is selected, and Close All Windows. But I'm hoping to find a way to automatically close the window on my second screen (my TV I use for games) whether or not I have it selected.

I've had it happen where I press Num9 (my current Close Window hotkey) but it doesn't work on that game, or I didn't have that window selected. For me a best case scenario would be a hotkey that closes the top window- or all windows- limited to one monitor, while everything on my main display is unaffected.

I don't know much of anything about coding but if there's an easy way to edit an existing script, make a trigger, or something along those lines, I would love to know.
Feb 5, 2022 (modified Feb 5, 2022)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I've added a script to the repository called "Close Topmost Window on Specific Monitor" that should do what you're looking for. Make sure to set the monitor ID on line 17 :)

Hope that helps!
Feb 9, 2022  • #2
User Image
BradBardoon
11 discussion posts
Quote:
I've added a script to the repository called "Close Topmost Window on Specific Monitor" that should do what you're looking for. Make sure to set the monitor ID on line 17 :)

Hope that helps!


Tested it with a few games and it works like a charm, thank you so much! This combined with the "prevent window deactivation" trigger makes my current pc-tv-gaming set-up a dream come true~!
Feb 9, 2022  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad to hear it!
Feb 9, 2022  • #4
Was this helpful?  Login to Vote(-)  Login to Vote(-)