You know how when something happens on an app, and the taskbar flashes to get your attention?
well, wouldent it be cool if we could flash every one?

O.o
no, its actually quite simple….

Code:

Public Class FlashWindow

    Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

    Shared Sub main()

        For Each p As System.Diagnostics.Process In System.Diagnostics.Process.GetProcesses
            If p.MainWindowTitle.Length > 1 Then
                FlashWindow(p.MainWindowHandle, 1)
            End If
        Next

    End Sub
End Class

'Note.....
' to make your own app flash, simply remove the whole loop
' and replace ""FlashWindow(p.MainWindowHandle, 1)"" with
' "" FlashWindow(Me.Handle, 1)
'
' if your app is activated, the icon / taskbar will not flash
'Note...