FlashWindow

本ページには広告が含まれています。

指定されたウィンドウのタイトルバーを1回点滅させます。複数回点滅させるにはFlashWindowを使います。

構文(VBA)
Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
構文(UWSC)
DEF_DLL FlashWindow(hwnd, long): long: user32.dll
引数
戻り値

プログラム実行例

ウィンドウのタイトルバーを点滅させる

UWSC
DEF_DLL FlashWindow(hwnd, long): long: user32.dll

DIM hwnd = IDTOHND(EXEC("notepad"))

FOR i = 1 TO 3
	PRINT FlashWindow(hwnd , TRUE)
	SLEEP(3.000)
NEXT
使用関数