Make vision client icon in taskbar flash when a tag changes

Hello,
I am trying to make the icon on the taskbar flash during any tag change. This is to notify the user when the vision client is minimized that some change has happened in the background.

1 Like

You would use something like this:

from java.awt import Window
from javax.swing import SwingUtilities

allWindows = system.gui.getOpenedWindows()

if len(allWindows)>0:
    topWindow = SwingUtilities.getAncestorOfClass(Window, allWindows[0])
    topWindow.toFront()

but you would want to have some property change scripts and maybe put this in a custom method to call whenever. This will allow you to only notify for updates of tags on the page based on what you configure to actually fire this event.

credit: