Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Randomini
8 discussion posts
Hi;
I want a certain window (Spotify) to automatically close/minimise when it loses focus, but in the GUI there's only a Trigger for when a window gains focus. What would be the easiest way to do this?
Thanks!
May 10, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Windows doesn't send a global message when an application loses focus, so it's not possible to add as a Trigger event.

You could have a Window Focused Trigger that uses *.* as the application, and runs a Scripted Function that does this:
  • Check if window that got focus was Spotify
  • If not, check if Spotify is visible
  • If so, minimize Spotify

That would be a bit resource intensive though, since it would have to run through that script every time a different window gets focus.
May 13, 2019  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)