BmpPos/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „Timeout and system parameters“)
Řádek 9: Řádek 9:
 
'''Detects the bitmap position.'''
 
'''Detects the bitmap position.'''
  
Seeks a bitmap given by the [[#bitmap-| Bitmap]] parameter on the screen and then if a bitmap is found, it stores the occurrence coordinates to [[#left-| Left]], [[#top-| Top]], [[#right-| Right]] and [[#botom-| Botom]] parameters. The capture offset is stored in the [[#captureleft-| CaptureLeft]] and [[#capturetop-| CaptureTop]] parameters. It is possible to set the timeout with the [[#wait-| Wait]] parameter, skip multiple occurrences with the [[#skip-| Skip]] parameter and specify masking ([[#maskmode-| MaskMode]], [[#bitmapmaskcolor-| BitmapMaskColor]] and [[#screenmaskcolor-| ScreenMaskColor]] parameters). The search area is determined by the value of the [[#capturemode-| CaptureMode]] parameter. In a case bitmap is not found, the command ends with an error.
+
Searches for a bitmap given by the [[#bitmap-| Bitmap]] parameter on the screen and then if the bitmap is found, it stores the occurrence coordinates to [[#left-| Left]], [[#top-| Top]], [[#right-| Right]] and [[#bottom-| Bottom]] parameters. The capture offset is stored in the [[#captureleft-| CaptureLeft]] and [[#capturetop-| CaptureTop]] parameters. It is possible to set the timeout with the [[#wait-| Wait]] parameter, to skip multiple occurrences with the [[#skip-| Skip]] parameter and to specify masking with ([[#maskmode-| MaskMode]], [[#bitmapmaskcolor-| BitmapMaskColor]] and [[#screenmaskcolor-| ScreenMaskColor]] parameters). The search area is determined by the value of the [[#capturemode-| CaptureMode]] parameter. In case no bitmap is found, the command ends with an error.
  
 
== Input parameters ==
 
== Input parameters ==

Verze z 3. 2. 2021, 09:15

Jiné jazyky:
English • ‎čeština

Description

Alias: BP

Detects the bitmap position.

Searches for a bitmap given by the Bitmap parameter on the screen and then if the bitmap is found, it stores the occurrence coordinates to Left, Top, Right and Bottom parameters. The capture offset is stored in the CaptureLeft and CaptureTop parameters. It is possible to set the timeout with the Wait parameter, to skip multiple occurrences with the Skip parameter and to specify masking with ( MaskMode, BitmapMaskColor and ScreenMaskColor parameters). The search area is determined by the value of the CaptureMode parameter. In case no bitmap is found, the command ends with an error.

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.

Skip

Number type

Defines number of bitmap occurrences that are skipped when searched.

Wait

Number type

Timeout in seconds for occurrence of searched bitmap.

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

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

PreWait

Number type

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

PostWait

Number type

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

Output parameters

Left

Number type

Coordinate of the left side of the Bitmap occurrence.

Top

Number type

Coordinate of the top side of the Bitmap occurrence.

Right

Number type

Coordinate of the right side of the Bitmap occurrence.

Bottom

Number type

Coordinate of the bottom side of the Bitmap occurrence.

CaptureLeft

Number type

Horizontal position of the searched area within the desktop.

CaptureTop

Number type

Vertical position of the searched area within the desktop.

See also

Using a mask

Capture modes

Resolving multiple occurrences of the searched bitmap

Timeout and system parameters