Class
FlashWindow

Automation method for a Flash window.

Definition

Namespace:ArtOfTest.Common.Win32

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public static class FlashWindow

Inheritance: objectFlashWindow

Fields

FLASHW_ALL

Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.

Declaration

cs-api-definition
public const int FLASHW_ALL = 3

Field Value

int

FLASHW_CAPTION

Flash the window caption.

Declaration

cs-api-definition
public const int FLASHW_CAPTION = 1

Field Value

int

FLASHW_STOP

Stop flashing. The system restores the window to its original stae.

Declaration

cs-api-definition
public const int FLASHW_STOP = 0

Field Value

int

FLASHW_TIMER

Flash continuously, until the FLASHW_STOP flag is set.

Declaration

cs-api-definition
public const int FLASHW_TIMER = 4

Field Value

int

FLASHW_TIMERNOFG

Flash continuously until the window comes to the foreground.

Declaration

cs-api-definition
public const int FLASHW_TIMERNOFG = 12

Field Value

int

FLASHW_TRAY

Flash the taskbar button.

Declaration

cs-api-definition
public const int FLASHW_TRAY = 2

Field Value

int

Methods

Flash(IntPtr)

Flash the specified Window until it recieves focus.

Declaration

cs-api-definition
public static bool Flash(IntPtr handle)

Parameters

handle

IntPtr

The Window to Flash.

Returns

bool

Flash(IntPtr, int)

Flash the specified Window for the specified number of times

Declaration

cs-api-definition
public static bool Flash(IntPtr handle, int count)

Parameters

handle

IntPtr

The Window to Flash.

count

int

The number of times to Flash.

Returns

bool

Start(IntPtr)

Start Flashing the specified Window.

Declaration

cs-api-definition
public static bool Start(IntPtr handle)

Parameters

handle

IntPtr

The Window to Flash.

Returns

bool

Stop(IntPtr)

Stop Flashing the specified Window.

Declaration

cs-api-definition
public static bool Stop(IntPtr handle)

Parameters

handle

IntPtr

The window to stop flashing.

Returns

bool