QueryBmp/en: Porovnání verzí
(Založena nová stránka s textem „Specifies the number of occurrences of the bitmap skipped during the search.“) |
|||
| (Není zobrazeno 25 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 9: | Řádek 9: | ||
'''Detects a bitmap.''' | '''Detects a bitmap.''' | ||
| − | Finds the bitmap on the screen. If it is found, it is entered in the output [[#found-| Found]]=1, otherwise [[#found-| Found]]=0, while the [[#notfound-| NotFound]] output parameter behaves the opposite. For testing the occurrence of the bitmap, | + | Finds the bitmap on the screen. If it is found, it is entered in the output [[#found-| Found]]=1, otherwise [[#found-| Found]]=0, while the [[#notfound-| NotFound]] output parameter behaves the opposite. For testing the occurrence of the bitmap, timeout can be set by the [[#wait-| Wait]] parameter, skipping multiple occurrences using the [[#skip-| Skip]] parameter, and doing a masked search using the (parameters [[#maskmode-| MaskMode]], [[#bitmapmaskcolor-| BitmapMaskColor]] and [[#screenmaskcolor-| ScreenMaskColor]]). The search area is specified by the value of the [[#capturemode-| CaptureMode]] parameter. |
== Input parameters == | == Input parameters == | ||
| Řádek 38: | Řádek 38: | ||
Type [[Special:MyLanguage/Data types#Color | Color]] | Type [[Special:MyLanguage/Data types#Color | Color]] | ||
| − | + | Key color of the user mask for the capture, matching the color of the [[#bitmapmaskcolor-| BitmapMaskColor]]. You should set this value only if these two colors are different. | |
<span id="skip-"></span> | <span id="skip-"></span> | ||
| Řádek 50: | Řádek 50: | ||
=== Wait === | === Wait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Waiting time in seconds for the bitmap to appear. | |
<span id="capturemode-"></span> | <span id="capturemode-"></span> | ||
| Řádek 58: | Řádek 58: | ||
=== CaptureMode === | === CaptureMode === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Defines the search area (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 === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Enables or disables the command. If the value is 0, the command will not be executed. | |
=== PreWait === | === PreWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
=== PostWait === | === PostWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
| − | == | + | == Output parameters == |
<span id="found-"></span> | <span id="found-"></span> | ||
=== Found === | === Found === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Bitmap found flag. | |
<span id="notfound-"></span> | <span id="notfound-"></span> | ||
=== NotFound === | === NotFound === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Bitmap not found flag. | |
| − | == | + | == See also == |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Examples of use#QueryBmp | Examples of use]] |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Using masks|Using masks]] |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Capture modes|Capture modes]] |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Resolving multiple occurrences of searched bitmap|Resolving multiple occurrences of searched bitmap]] |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Timeout and system parameters|Timeout and system parameters]] |
Aktuální verze z 3. 2. 2021, 13:54
Obsah
Description
Alias: QB
Detects a bitmap.
Finds the bitmap on the screen. If it is found, it is entered in the output Found=1, otherwise Found=0, while the NotFound output parameter behaves the opposite. For testing the occurrence of the bitmap, timeout can be set by the Wait parameter, skipping multiple occurrences using the Skip parameter, and doing a masked search using the (parameters MaskMode, BitmapMaskColor and ScreenMaskColor). The search area is specified by the value of the CaptureMode parameter.
Input parameters
Bitmap
Type Bitmap
Found bitmap.
MaskMode
Type Number
Mask mode used during the search (0=none, 1=user mask, 2=automatic mask).
BitmapMaskColor
Type Color
Key color of the user mask in the specified bitmap (used only for MaskMode=1).
ScreenMaskColor
Type Color
Key color of the user mask for the capture, matching the color of the BitmapMaskColor. You should set this value only if these two colors are different.
Skip
Type Number
Specifies the number of occurrences of the bitmap skipped during the search.
Wait
Type Number
Waiting time in seconds for the bitmap to appear.
CaptureMode
Type Number
Defines the search area (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 be executed.
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
Found
Type Number
Bitmap found flag.
NotFound
Type Number
Bitmap not found flag.