WaitForBmp/en: Porovnání verzí
(Založena nová stránka s textem „== Description ==“) |
|||
| (Není zobrazeno 38 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 7: | Řádek 7: | ||
'''Alias: WFB''' | '''Alias: WFB''' | ||
| − | ''' | + | '''Waits for the bitmap.''' |
| − | + | Depending on the value of [[#waitmode-|WaitMode]], it waits for the [[# bitmap-|Bitmap]] to appear or disappear. To search for the reference bitmap, timeout can be set using the [[#wait-|Wait]] parameter, to skip multiple occurrences using the [[#skip1-|Skip1]] or [[#skip2-|Skip2]] parameters, and to mask the search by using the parameters [[#maskmode1-|MaskMode1]], [[#bitmapmaskcolor1-|BitmapMaskColor1]] and [[#screenmaskcolor1-|ScreenMaskColor1]] or [[#maskmode2-|MaskMode2]], [[#bitmapmaskcolor2-|BitmapMaskColor2]] and [[#screenmaskcolor2-|ScreenMaskColor2]]. If the bitmap is not found in the search area specified by the [[#capturemode-|CaptureMode]], the command ends in error. | |
| − | == | + | == Input parameters == |
<span id="bitmap-"></span> | <span id="bitmap-"></span> | ||
=== Bitmap === | === Bitmap === | ||
| − | + | Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]] | |
| − | + | Detected bitmap. | |
<span id="waitmode-"></span> | <span id="waitmode-"></span> | ||
=== WaitMode === | === WaitMode === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Bitmap wait mode (0=wait to display, 1=wait to disappear). | |
<span id="maskmode-"></span> | <span id="maskmode-"></span> | ||
=== MaskMode === | === MaskMode === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Mask mode used for the search (0=none, 1=user mask, 2=automatic mask). | |
<span id="bitmapmaskcolor-"></span> | <span id="bitmapmaskcolor-"></span> | ||
=== BitmapMaskColor === | === BitmapMaskColor === | ||
| − | + | Type [[Special:MyLanguage/Data types#Color | Color]] | |
| − | + | Key color of the user mask in the specified bitmap (used only for MaskMode=1). | |
<span id="screenmaskcolor-"></span> | <span id="screenmaskcolor-"></span> | ||
=== ScreenMaskColor === | === ScreenMaskColor === | ||
| − | + | 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> | ||
=== Skip === | === Skip === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Specifies the number of times bitmaps were skipped during the search. | |
<span id="wait-"></span> | <span id="wait-"></span> | ||
=== Wait === | === Wait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Waiting time in seconds for the detected bitmap to appear. | |
<span id="capturemode-"></span> | <span id="capturemode-"></span> | ||
=== 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). | |
=== OnlyIfNotNull === | === OnlyIfNotNull === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | If the value is 1, the command will not run unless the value of the [[#bitmap-| Bitmap]] parameter is specified. | |
=== Enabled === | === Enabled === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Enables or disables the command. If the value is 0, the command will not execute. | |
=== 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 == |
| − | == | + | == See also == |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Examples of use#WaitForBmp | 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 the detected bitmap|Resolving multiple occurrences of the detected bitmap]] |
| − | [[Special:MyLanguage/ | + | [[Special:MyLanguage/Timeout and system parameters|Timeout and system parameters]] |
Aktuální verze z 3. 2. 2021, 14:01
Obsah
Description
Alias: WFB
Waits for the bitmap.
Depending on the value of WaitMode, it waits for the Bitmap to appear or disappear. To search for the reference bitmap, timeout can be set using the Wait parameter, to skip multiple occurrences using the Skip1 or Skip2 parameters, and to mask the search by using the parameters MaskMode1, BitmapMaskColor1 and ScreenMaskColor1 or MaskMode2, BitmapMaskColor2 and ScreenMaskColor2. If the bitmap is not found in the search area specified by the CaptureMode, the command ends in error.
Input parameters
Bitmap
Type Bitmap
Detected bitmap.
WaitMode
Type Number
Bitmap wait mode (0=wait to display, 1=wait to disappear).
MaskMode
Type Number
Mask mode used for 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 times bitmaps were skipped during the search.
Wait
Type Number
Waiting time in seconds for the detected 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).
OnlyIfNotNull
Type Number
If the value is 1, the command will not run unless the value of the Bitmap parameter is specified.
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.