ScrollForBmp
Obsah
Description
Alias: SFB
Scrolls for bitmap.
Scrolls the document for the bitmap Bitmap by simulating the rotation of the mouse wheel. The scrolling direction is specified by the Direction parameter and size of each step by the Steps parameter. Scrolling can be limited by the ScrollCount parameter. To search for the bitmap, the maximum waiting time can be set by the Wait and doing a masked search using the (parameters MaskMode, BitmapMaskColor and ScreenMaskColor). The search area is specified by the value of the CaptureMode parameter. After finding the bitmap, additional scrolling can be defined with the AppendScrollSteps parameter. If the specified bitmap is not found, the command ends in error.
Input parameters
Bitmap
Type Bitmap
Bitmap to scroll for.
Direction
Type Number
"Scroll direction (0=down;1=up;2=right;3=left)."
Steps
Type Number
Number of steps of the mouse wheel used for scrolling.
ScrollCount
Type Number
Maximum number of scrolling steps.
AppendScrollSteps
Type Number
Number of steps of the mouse wheel taken after finding the bitmap.
MaskMode
Type Number
Mask mode used for the search (0=none, 1=user mask, 2=automatic mask).
BitmapMaskColor
Typ Color
Klíčová barva uživatelské masky v zadané bitmapě (používá se pouze při MaskMode=1).
ScreenMaskColor
Typ Color
Klíčová barva uživatelské masky na sejmuté obrazovce, odpovídající barvě BitmapMaskColor. Tuto hodnotu je třeba nastavit jen v případě, že se tyto dvě barvy liší.
Wait
Typ Number
Doba čekání na výskyt hledané bitmapy.
CaptureMode
Typ Number
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).
OnlyIfNotNull
Typ Number
Pokud má hodnotu 1, pak se příkaz neprovádí v případě, kdy není zadána hodnota parametru Bitmap.
Enabled
Typ Number
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
PreWait
Typ Number
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
PostWait
Typ Number
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.