WinFlash

首页  后退  前进

WinFlash
down2

WinFlash

闪烁任务栏指定的窗口.

 

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

参数

title

目标窗口标题, 或句柄, 或类名. 参考 窗口标题与文本.

text

[可选] 目标窗口文本. 默认值为空字符串. 参考 窗口标题与文本.

flashes

[可选] 闪烁的次数. 默认为 4 次.

delay

[可选] 连续闪烁间的暂停时间(毫秒). 默认为 500 毫秒.

返回值

None.

备注

这个函数为吸引用户对特定对象的注意, 非常有用!

 

函数示例

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, 500)
EndFunc   ;==>Example

----------------------------------------

 

该函数可以通过命令调用 exect

参见:

WinSetState

例子
copy

exect=WinFlash('[CLASS:Notepad]') ;; 任务栏中的闪烁窗口"记事本"

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru