BmpPos/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „BmpPos“)
 
 
(Není zobrazeno 47 mezilehlých verzí od 2 dalších uživatelů.)
Řádek 3: Řádek 3:
 
[[Category:GuiMaster Library]]
 
[[Category:GuiMaster Library]]
  
== Popis ==
+
== Description ==
  
 
'''Alias: BP'''
 
'''Alias: BP'''
  
'''Zjistí pozici bitmapy.'''
+
'''Detects the bitmap position.'''
  
Hledá na obrazovce bitmapu danou parametrem [[#bitmap-| Bitmap]] a po jejím nalezení zapíše souřadnice jejího umístění do výstupních parametrů [[#left-| Left]], [[#top-| Top]], [[#right-| Right]] a [[#botom-| Botom]]. Do výstupních parametrů [[#captureleft-| CaptureLeft]] a [[#captureright-| CaptureRight]] uloží ofset prohledávaného snímku. Pro vyhledávání bitmapy je možné nastavit maximální čekací dobu parametrem [[#wait-| Wait]], přeskočení vícenásobných výskytů parametrem [[#skip-| Skip]] a vyhledávání s maskou (parametry [[#maskmode-| MaskMode]], [[#bitmapmaskcolor-| BitmapMaskColor]] a [[#screenmaskcolor-| ScreenMaskColor]]). Oblast vyhledávání určuje hodnota parametru [[#capturemode-| CaptureMode]]. Pokud není zadaná bitmapa naleznena, příkaz končí chybou.
+
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.
  
== Vstupní parametry ==
+
== Input parameters ==
  
 
<span id="bitmap-"></span>
 
<span id="bitmap-"></span>
 
=== Bitmap ===
 
=== Bitmap ===
  
Typ [[Special:MyLanguage/Datové typy#Bitmap | Bitmap]]
+
[[Special:MyLanguage/Datové typy#Bitmap | Bitmap]] type
  
Hledaná bitmapa.
+
Detected bitmap.
  
 
<span id="maskmode-"></span>
 
<span id="maskmode-"></span>
 
=== MaskMode ===
 
=== MaskMode ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Režim masky použité při vyhledávání (0=žádná, 1=uživatelská maska, 2=automatická maska).
+
Mask mode used for the bitmap search (0=none, 1=user mask, 2=automatic mask).
  
 
<span id="bitmapmaskcolor-"></span>
 
<span id="bitmapmaskcolor-"></span>
 
=== BitmapMaskColor ===
 
=== BitmapMaskColor ===
  
Typ [[Special:MyLanguage/Datové typy#Color | Color]]
+
[[Special:MyLanguage/Datové typy#Color | Color]] type
  
Klíčová barva uživatelské masky v zadané bitmapě  (používá se pouze při [[#maskmode-| MaskMode]]=1).
+
The key color of the user mask in the Bitmap (used only if [[#maskmode-| MaskMode]]=1).
  
 
<span id="screenmaskcolor-"></span>
 
<span id="screenmaskcolor-"></span>
 
=== ScreenMaskColor ===
 
=== ScreenMaskColor ===
  
Typ [[Special:MyLanguage/Datové typy#Color | Color]]
+
[[Special:MyLanguage/Datové typy#Color | Color]] type
  
Klíčová barva uživatelské masky na sejmuté obrazovce, odpovídající barvě [[#bitmapmaskcolor-| BitmapMaskColor]]. Tuto hodnotu je třeba nastavit jen v případě, že se tyto dvě barvy liší.
+
The key color of the user mask on the captured screen corresponding to the [[#bitmapmaskcolor-| BitmapMaskColor]]. You should set this value only if these two colors are different.
  
 
<span id="skip-"></span>
 
<span id="skip-"></span>
 
=== Skip ===
 
=== Skip ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Určuje počet výskytů bitmap, které se při vyhledávání přeskočí.
+
Defines number of bitmap occurrences that are skipped when searched.
  
 
<span id="wait-"></span>
 
<span id="wait-"></span>
 
=== Wait ===
 
=== Wait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Doba čekání v sekundách na výskyt hledané bitmapy.
+
Timeout in seconds for the occurrence of the searched bitmap.
  
 
<span id="capturemode-"></span>
 
<span id="capturemode-"></span>
 
=== CaptureMode ===
 
=== CaptureMode ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Definuje oblast vyhledávání (0=desktop, 1=aktivní okno, 2=aktivní region, 3=oblast aktivního okna, 16=klientská část aktivního okna, 257-264=monitor 1-8, 512-520=aktivní region 0-8).
+
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 ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not be executed.
  
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds after executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
 
<span id="left-"></span>
 
<span id="left-"></span>
 
=== Left ===
 
=== Left ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Souřadnice levé strany bitmapy Bitmap.
+
Coordinates of the left side of the [[#bitmap-| Bitmap]] occurrence.
  
 
<span id="top-"></span>
 
<span id="top-"></span>
 
=== Top ===
 
=== Top ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Souřadnice horní strany bitmapy Bitmap.
+
Coordinate of the top side of the [[#bitmap-| Bitmap]] occurrence.
  
 
<span id="right-"></span>
 
<span id="right-"></span>
 
=== Right ===
 
=== Right ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Souřadnice pravé strany bitmapy Bitmap.
+
Coordinates of the right side of the [[#bitmap-| Bitmap]] occurrence.
  
 
=== Bottom ===
 
=== Bottom ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Souřadnice spodní strany bitmapy Bitmap.
+
Coordinate of the bottom side of the [[#bitmap-| Bitmap]] occurrence.
  
 
<span id="captureleft-"></span>
 
<span id="captureleft-"></span>
 
=== CaptureLeft ===
 
=== CaptureLeft ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Horizontální pozice prohledávané oblasti v rámci desktopu
+
Horizontal position of the searched area within the desktop.
  
 
=== CaptureTop ===
 
=== CaptureTop ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Vertikální pozice prohledávané oblasti v rámci desktopu
+
Vertical position of the searched area within the desktop.
 +
 
 +
== See also ==
 +
 
 +
[[Special:MyLanguage/Používání masky|Using a mask]]
 +
 
 +
[[Special:MyLanguage/Režimy snímání obrazovky|Capture modes]]
 +
 
 +
[[Special:MyLanguage/Řešení více výskytů hledané bitmapy|Resolving multiple occurrences of the searched bitmap]]
 +
 
 +
[[Special:MyLanguage/Časový limit a systémové parametry|Timeout and system parameters]]

Aktuální verze z 3. 2. 2021, 09:17

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 the 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 BitmapMaskColor. You should set this value only if these two colors are different.

Skip

Number type

Defines number of bitmap occurrences that are skipped when searched.

Wait

Number type

Timeout in seconds for the occurrence of the 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

Coordinates of the left side of the Bitmap occurrence.

Top

Number type

Coordinate of the top side of the Bitmap occurrence.

Right

Number type

Coordinates 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