SetActiveRegion/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „Defines the search area of Bitmap2 (0=desktop, 1=active window, 2=active region, 3=active window area, 16=client part of the active window,…“)
 
(Není zobrazeno 16 mezilehlých verzí od 2 dalších uživatelů.)
Řádek 9: Řádek 9:
 
'''Sets the active region of the screen.'''
 
'''Sets the active region of the screen.'''
  
Sets the active region of the screen with the [[#regionid-| RegionId]] number for use in the [[#capturemode-| CaptureMode]]=2 (or 512-520) viewport in subsequent commands. The area is specified by two points [[#reference1-| Reference1]] and [[#reference2-| Reference2]] relative to [[#bitmap1-| Bitmap1]] and [[#bitmap2-| Bitmap2]]. 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]]. Search areas are specified by the values of [[#capturemode1-|CaptureMode1]] and [[#capturemode2-|CaptureMode2]]. If any of the bitmaps is not found, the command ends in error.
+
Sets the active region of the screen with the [[#regionid-| RegionId]] number for use in the [[#capturemode-| CaptureMode]]=2 (or 512-520) viewport in subsequent commands. The area is specified by two points [[#reference1-| Reference1]] and [[#reference2-| Reference2]] relative to [[#bitmap1-| Bitmap1]] and [[#bitmap2-| Bitmap2]]. 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]]. Search areas are specified by the values of [[#capturemode1-|CaptureMode1]] and [[#capturemode2-|CaptureMode2]]. If any of the bitmaps is not found, the command ends in error.
  
 
== Input parameters ==
 
== Input parameters ==
Řádek 35: Řádek 35:
  
 
<span id="reference2-"></span>
 
<span id="reference2-"></span>
 +
 
=== Reference2 ===
 
=== Reference2 ===
  
Řádek 121: Řádek 122:
 
=== CaptureMode2 ===
 
=== CaptureMode2 ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
 
Defines the search area of [[# 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).
 
Defines the search area of [[# 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).
Řádek 127: Řádek 128:
 
=== Enabled ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#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 ===
  
Typ [[Special:MyLanguage/Datové typy#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 ===
  
Typ [[Special:MyLanguage/Datové typy#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í#SetActiveRegion|Příklady použití]]
+
[[Special:MyLanguage/Examples of use#SetActiveRegion | 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 searched bitmap|Resolving multiple occurrences of the searched 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, 13:58

Jiné jazyky:
English • ‎čeština

Description

Alias: SAR

Sets the active region of the screen.

Sets the active region of the screen with the RegionId number for use in the CaptureMode=2 (or 512-520) viewport in subsequent commands. The area is specified by two points Reference1 and Reference2 relative to Bitmap1 and Bitmap2. 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. Search areas are specified by the values of CaptureMode1 and CaptureMode2. If any of the bitmaps is not found, the command ends in error.

Input parameters

Bitmap1

Type Bitmap

Bitmap reference of the first corner of the viewport.

Reference1

Type Reference

Reference relative to Bitmap1 specifying the first corner of the viewport.

Bitmap2

Type Bitmap

Bitmap reference of the second corner of the viewport.

Reference2

Type Reference

Reference relative to Bitmap2 specifying the second corner of the viewport.

RegionId

Type Number

Number of region. Admissable values are from 0 to 8.

MaskMode1

Type Number

Mask mode used for searching for 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 searching for 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 searched bitmaps to appear.

CaptureMode1

Type Number

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

CaptureMode2

Type Number

Defines the search area of 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 searched bitmap

Timeout and system parameters