Function Reference


WinFlash

Flashes a window in the taskbar.

WinFlash ( "title" [, "text" [, flashes = 4 [, delay = 500]]] )

Parameters

title The title/hWnd/class of the window to change. See Title special definition.
text [optional] The text of the window to change. Default is an empty string. See Text special definition.
flashes [optional] The amount of times to flash the window. Default 4.
delay [optional] The time in milliseconds to sleep between each flash. Default 500 ms.

Return Value

None.

Remarks

This function is very useful for catching the user's eye!

Related

WinSetState

Example

Example()

Func Example()
        ; Run Notepad
        Run("notepad.exe")

        ; Wait 10 seconds for the Notepad window to appear.
        Local $hWnd = WinWait("[CLASS:Notepad]", "", 10)

        ; Flash the window 4 times with a break in between each one of 1/2 second.
        WinFlash($hWnd, "", 4, 1000)

        ; Wait for 5 seconds to display the Notepad window, no more flashing.
        Sleep(5000)

        ; Close the Notepad window using the handle returned by WinWait.
        WinClose($hWnd)
EndFunc   ;==>Example