WaitForBmp

Z Wiki
Přejít na: navigace, hledání
Toto je přeložená verze stránky WaitForBmp, překlad je hotový z 100 %.

Jiné jazyky:
English • ‎čeština

Description

Alias: WFB

Waits for the bitmap.

Depending on the value of WaitMode, it waits for the Bitmap to appear or disappear. To search for the reference bitmap, timeout can be set using the Wait parameter, to skip multiple occurrences using the Skip1 or Skip2 parameters, and to mask the search by using the parameters MaskMode1, BitmapMaskColor1 and ScreenMaskColor1 or MaskMode2, BitmapMaskColor2 and ScreenMaskColor2. If the bitmap is not found in the search area specified by the CaptureMode, the command ends in error.

Input parameters

Bitmap

Type Bitmap

Detected bitmap.

WaitMode

Type Number

Bitmap wait mode (0=wait to display, 1=wait to disappear).

MaskMode

Type Number

Mask mode used for the search (0=none, 1=user mask, 2=automatic mask).

BitmapMaskColor

Type Color

Key color of the user mask in the specified bitmap (used only for MaskMode=1).

ScreenMaskColor

Type Color

Key color of the user mask for the capture, matching the color of the BitmapMaskColor. You should set this value only if these two colors are different.

Skip

Type Number

Specifies the number of times bitmaps were skipped during the search.

Wait

Type Number

Waiting time in seconds for the detected bitmap to appear.

CaptureMode

Type Number

Defines the search area (0=desktop, 1=active window, 2=active region, 3=active window area, 16=client part of the active window, 257-264=monitor 1-8, 512-520=active region 0-8).

OnlyIfNotNull

Type Number

If the value is 1, the command will not run unless the value of the Bitmap parameter is specified.

Enabled

Type Number

Enables or disables the command. If the value is 0, the command will not execute.

PreWait

Type Number

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

PostWait

Type Number

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

Output parameters

See also

Examples of use

Using masks

Capture modes

Resolving multiple occurrences of the detected bitmap

Timeout and system parameters