WaitForColor/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „ Type Color“)
 
(Není zobrazeno 35 mezilehlých verzí od stejného uživatele.)
Řádek 9: Řádek 9:
 
'''Waits for the pixel color at Reference1 or anywhere in the area defined by two references.'''
 
'''Waits for the pixel color at Reference1 or anywhere in the area defined by two references.'''
  
Repeatedly searches the screen for [[#bitmap1-|Bitmap1]], or [[#bitmap2-|Bitmap2]] if specified. Once found, and depending on the value of the [[#waitmode-|WaitMode]], it waits for the desired [[#color-|Color]] to appear or disappear at the location of [[#reference1-|Reference1]] or (in the case of two bitmaps) in a rectangular area delimited by both references. To search for reference bitmaps, the maximum waiting time can be set using [[#wait-|Wait]], to skip multiple occurrences using [[#skip1-|Skip1]] or [[#skip2-|Skip2]], and to mask the search by using [[#maskmode1-|MaskMode1]], [[#bitmapmaskcolor1-|BitmapMaskColor1]] and [[#screenmaskcolor1-|ScreenMaskColor1]] or [[#maskmode2-|MaskMode2]], [[#bitmapmaskcolor2-|BitmapMaskColor2]] and [[#screenmaskcolor2-|ScreenMaskColor2]]. The search area is specified by the value of the [[#capturemode-|CaptureMode]]. If none of the bitmaps is found, the command ends in error.
+
Repeatedly searches the screen for [[#bitmap1-|Bitmap1]], or [[#bitmap2-|Bitmap2]] if specified. Once found, and depending on the value of the [[#waitmode-|WaitMode]], it waits for the desired [[#color-|Color]] to appear or disappear at the location of [[#reference1-|Reference1]] or (in the case of two bitmaps) in a rectangular area delimited by both references. To search for reference bitmaps, timeout can be set using [[#wait-|Wait]], to skip multiple occurrences using [[#skip1-|Skip1]] or [[#skip2-|Skip2]], and to mask the search by using [[#maskmode1-|MaskMode1]], [[#bitmapmaskcolor1-|BitmapMaskColor1]] and [[#screenmaskcolor1-|ScreenMaskColor1]] or [[#maskmode2-|MaskMode2]], [[#bitmapmaskcolor2-|BitmapMaskColor2]] and [[#screenmaskcolor2-|ScreenMaskColor2]]. The search area is specified by the value of the [[#capturemode-|CaptureMode]]. If none of the bitmaps is found, the command ends in error.
  
 
== Input parameters ==
 
== Input parameters ==
Řádek 18: Řádek 18:
 
Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]]
 
Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]]
  
Referenční bitmapa pro místo výskytu požadované barvy nebo první roh oblasti.
+
Reference bitmap for the location where the desired color or first corner of the area appears.
  
 
<span id="reference1-"></span>
 
<span id="reference1-"></span>
Řádek 25: Řádek 25:
 
Type [[Special:MyLanguage/Data types#Reference | Reference]]
 
Type [[Special:MyLanguage/Data types#Reference | Reference]]
  
Reference pro místo výskytu požadované barvy nebo první roh oblasti.
+
Reference for the location where the desired color or first corner of the area appears.
  
 
<span id="bitmap2-"></span>
 
<span id="bitmap2-"></span>
Řádek 32: Řádek 32:
 
Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]]
 
Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]]
  
Referenční bitmapa pro druhý roh oblasti. Pokud není zadána, bude barva zjišťována v pixelu určeném referencí [[#reference1-| Reference1]].
+
Reference bitmap for the second corner of the area. If not specified, the color will be detected in the pixel specified by [[#reference1-|Reference1]].
  
 
=== Reference2 ===
 
=== Reference2 ===
Řádek 38: Řádek 38:
 
Type [[Special:MyLanguage/Data types#Reference | Reference]]
 
Type [[Special:MyLanguage/Data types#Reference | Reference]]
  
Reference pro druhý roh oblasti.
+
Reference for the second corner of the area.
  
 
<span id="color-"></span>
 
<span id="color-"></span>
 
=== Color ===
 
=== Color ===
 
  
 
Type [[Special:MyLanguage/Data types#Color | Color]]
 
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Požadovaná barva.
+
Desired color.
  
 
<span id="waitmode-"></span>
 
<span id="waitmode-"></span>
Řádek 53: Řádek 52:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Režim čekání na barvu (0=čekání na zobrazení, 1=čekání na zmizení).  
+
Color wait mode (0=wait to display, 1=wait to disappear).  
  
 
<span id="maskmode1-"></span>
 
<span id="maskmode1-"></span>
Řádek 60: Řádek 59:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Režim masky použité při vyhledávání bitmapy [[#bitmap1-| Bitmap1]] (0=žádná, 1=uživatelská maska, 2=automatická maska).
+
Mask mode used for detecting [[#bitmap1-| Bitmap1]] (0=none, 1=user mask, 2=automatic mask).
  
 
<span id="bitmapmaskcolor1-"></span>
 
<span id="bitmapmaskcolor1-"></span>
 
=== BitmapMaskColor1 ===
 
=== BitmapMaskColor1 ===
 
  
 
Type [[Special:MyLanguage/Data types#Color | Color]]
 
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Klíčová barva uživatelské masky v bitmapě [[#bitmap1-| Bitmap1]] (používá se pouze při [[#maskmode1-| MaskMode1]]=1).  
+
Key color of the user mask in [[#bitmap1-| Bitmap1]] (used only for [[#maskmode-1| MaskMode1]]=1).  
  
 
<span id="screenmaskcolor1-"></span>
 
<span id="screenmaskcolor1-"></span>
 
=== ScreenMaskColor1 ===
 
=== ScreenMaskColor1 ===
 
  
 
Type [[Special:MyLanguage/Data types#Color | Color]]
 
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Klíčová barva uživatelské masky na sejmuté obrazovce, odpovídající barvě [[#bitmapmaskcolor1-| BitmapMaskColor1]]. Tuto hodnotu je třeba nastavit jen v případě, že se tyto dvě barvy liší.  
+
Key color of the user mask for the capture, matching the color of [[#bitmapmaskcolor-1| BitmapMaskColor1]]. You should set this value only if these two colors are different.  
  
 
<span id="maskmode2-"></span>
 
<span id="maskmode2-"></span>
Řádek 83: Řádek 80:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Režim masky použité při vyhledávání bitmapy [[#bitmap2-| Bitmap2]] (0=žádná, 1=uživatelská maska, 2=automatická maska).
+
Mask mode used for detecting [[#bitmap2-| Bitmap2]] (0=none, 1=user mask, 2=automatic mask).
  
 
<span id="bitmapmaskcolor2-"></span>
 
<span id="bitmapmaskcolor2-"></span>
 
=== BitmapMaskColor2 ===
 
=== BitmapMaskColor2 ===
 
  
 
Type [[Special:MyLanguage/Data types#Color | Color]]
 
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Klíčová barva uživatelské masky v bitmapě [[#bitmap2-| Bitmap2]] (používá se pouze při [[#maskmode2-| MaskMode2]]=1).  
+
Key color of the user mask in [[#bitmap2-| Bitmap2]] (used only for [[#maskmode-2| MaskMode2]]=1).  
  
 
<span id="screenmaskcolor2-"></span>
 
<span id="screenmaskcolor2-"></span>
 
=== ScreenMaskColor2 ===
 
=== ScreenMaskColor2 ===
  
Typ [[Special:MyLanguage/Datové typy#Color | Color]]
+
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Klíčová barva uživatelské masky na sejmuté obrazovce, odpovídající barvě [[#bitmapmaskcolor2-| BitmapMaskColor2]]. Tuto hodnotu je třeba nastavit jen v případě, že se tyto dvě barvy liší.  
+
Key color of the user mask for the capture, matching the color of the [[#bitmapmaskcolor2-| BitmapMaskColor2]]. You should set this value only if these two colors are different.  
  
 
<span id="skip1-"></span>
 
<span id="skip1-"></span>
Řádek 105: Řádek 101:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Určuje počet výskytů bitmapy [[#bitmap1-| Bitmap1]], které se při vyhledávání přeskočí.
+
Specifies the number of times [[#bitmap1-| Bitmap1]] was skipped during the search.
  
 
<span id="skip2-"></span>
 
<span id="skip2-"></span>
Řádek 112: Řádek 108:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Určuje počet výskytů bitmapy [[#bitmap2-| Bitmap2]], které se při vyhledávání přeskočí.
+
Specifies the number of times [[#bitmap2-| Bitmap2]] was skipped during the search.
  
 
<span id="wait-"></span>
 
<span id="wait-"></span>
Řádek 119: Řádek 115:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Doba čekání v sekundách na výskyt hledaných bitmap.
+
Waiting time in seconds for the detected bitmaps to appear.
  
 
<span id="capturemode-"></span>
 
<span id="capturemode-"></span>
Řádek 126: Řádek 122:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Definuje oblast vyhledávání bitmap [[#bitmap1-| Bitmap1]] a [[#bitmap2-| Bitmap2]] (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 of [[# bitmap1-|Bitmap1]] and [[#bitmap2-| Bitmap2]] (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).
  
 
=== Enabled ===
 
=== Enabled ===
Řádek 132: Řádek 128:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
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 execute.
  
 
=== PreWait ===
 
=== PreWait ===
Řádek 138: Řádek 134:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
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 ===
Řádek 144: Řádek 140:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
== Viz také ==
+
== See also ==
  
[[Special:MyLanguage/Příklady použití#WaitForColor | Příklady použití]]
+
[[Special:MyLanguage/Examples of use#WaitForColor | Examples of use]]
  
[[Special:MyLanguage/Používání masky|Používání masky]]
+
[[Special:MyLanguage/Using masks|Using masks]]
  
[[Special:MyLanguage/Režimy snímání obrazovky|Režimy snímání obrazovky]]
+
[[Special:MyLanguage/Capture modes|Capture modes]]
  
[[Special:MyLanguage/Řešení více výskytů hledané bitmapy|Řešení více výskytů hledané bitmapy]]
+
[[Special:MyLanguage/Resolving multiple occurrences of the detected bitmap|Resolving multiple occurrences of the detected bitmap]]
  
[[Special:MyLanguage/Časový limit a systémové parametry|Časový limit a systémové parametry]]
+
[[Special:MyLanguage/Timeout and system parameters|Timeout and system parameters]]

Aktuální verze z 3. 2. 2021, 14:02

Jiné jazyky:
English • ‎čeština

Description

Alias: WFC

Waits for the pixel color at Reference1 or anywhere in the area defined by two references.

Repeatedly searches the screen for Bitmap1, or Bitmap2 if specified. Once found, and depending on the value of the WaitMode, it waits for the desired Color to appear or disappear at the location of Reference1 or (in the case of two bitmaps) in a rectangular area delimited by both references. To search for reference bitmaps, timeout can be set using Wait, to skip multiple occurrences using Skip1 or Skip2, and to mask the search by using MaskMode1, BitmapMaskColor1 and ScreenMaskColor1 or MaskMode2, BitmapMaskColor2 and ScreenMaskColor2. The search area is specified by the value of the CaptureMode. If none of the bitmaps is found, the command ends in error.

Input parameters

Bitmap1

Type Bitmap

Reference bitmap for the location where the desired color or first corner of the area appears.

Reference1

Type Reference

Reference for the location where the desired color or first corner of the area appears.

Bitmap2

Type Bitmap

Reference bitmap for the second corner of the area. If not specified, the color will be detected in the pixel specified by Reference1.

Reference2

Type Reference

Reference for the second corner of the area.

Color

Type Color

Desired color.

WaitMode

Type Number

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

MaskMode1

Type Number

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

BitmapMaskColor1

Type Color

Key color of the user mask in Bitmap1 (used only for MaskMode1=1).

ScreenMaskColor1

Type Color

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

MaskMode2

Type Number

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

BitmapMaskColor2

Type Color

Key color of the user mask in Bitmap2 (used only for MaskMode2=1).

ScreenMaskColor2

Type Color

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

Skip1

Type Number

Specifies the number of times Bitmap1 was skipped during the search.

Skip2

Type Number

Specifies the number of times Bitmap2 was skipped during the search.

Wait

Type Number

Waiting time in seconds for the detected bitmaps to appear.

CaptureMode

Type Number

Defines the search area of Bitmap1 and Bitmap2 (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).

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