BmpCount

Z Wiki
Verze z 7. 7. 2020, 17:49, kterou vytvořil SamiecK (diskuse | příspěvky) (Založena nová stránka s textem „ Number type“)
Přejít na: navigace, hledání
Jiné jazyky:
English • ‎čeština

Description

Alias: BC

Detects the number of a bitmap occurrences.

Search for given Bitmap on the screen and counts the number of occurrences. Result is stored in the output parameter Count. It is possible to specify masking ( MaskMode, BitmapMaskColor and ScreenMaskColor parameters). The search area is determined by the value of the CaptureMode parameter.

Input parameters

Bitmap

Bitmap type

Detected bitmap.

MaskMode

Number type

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

BitmapMaskColor

Color type

The key color of the user mask in the ~Bitmap (used only if MaskMode=1).

ScreenMaskColor

Color type

The key color of the user mask on the captured screen corresponding to the color BitmapMaskColor. It is only need to set this value if the two colors are different.

CaptureMode

Number type

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

Enabled

Number type

Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.

PreWait

Typ Number

Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.

PostWait

Typ Number

Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.

Výstupní parametry

Count

Typ Number

Počet výskytů bitmapy.

Viz také

Používání masky

Režimy snímání obrazovky