DragAndDrop

Z Wiki
Přejít na: navigace, hledání
Jiné jazyky:
English • ‎čeština

Description

Alias: DAD

Drags an object to another object.

Uses the mouse to drag an object from the point specified by Reference1 relative to Bitmap1 to point Reference2 relative to Bitmap2 using the button Button. For moving, the status of shift keys can be set using the Key parameter. The number of clicks at the starting point is determined by the ClickCount parameter. To search for reference bitmaps, the maximum waiting time can be set using the Wait parameter, to skip multiple occurrences using the Skip1 or Skip2 parameters, and to mask the search using the parameters MaskMode1, BitmapMaskColor1 and ScreenMaskColor1 or MaskMode2, BitmapMaskColor2 and ScreenMaskColor2). Search areas are specified by the values of the parameters CaptureMode1 and CaptureMode2. If any of the bitmaps is not found, the command ends in error.

Input parameters

Bitmap1

Type Bitmap

Bitmap for the dragged object.

Reference1

Type Reference

Reference to the dragged object.

Bitmap2

Type Bitmap

Bitmap for the target object.

Reference2

Type Reference

Reference to the target object.

ClickCount

Type Number

Number of clicks at the point Reference1.

Button

Type Number

Specifies the mouse button used for clicking (0=none, 1=left, 2=right, 3=middle).

Key

Type Number

This parameter makes it possible to simulate the pressing of shift keys during dragging. A value of 0 means no shift keys, otherwise any combination of values can be used: 1=Shift, 2=Control, 4=Alt.

MaskMode1

Type Number

Mask mode used to search for Bitmap1 (0=none, 1=the 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 on the captured screen, matching the color BitmapMaskColor1. You only need to set this value if two colors are different.

MaskMode2

Type Number

Režim masky použité při vyhledávání bitmapy Bitmap2 (0=žádná, 1=uživatelská maska, 2=automatická maska).

BitmapMaskColor2

Typ Color

Klíčová barva uživatelské masky v bitmapě Bitmap2 (používá se pouze při MaskMode2=1).

ScreenMaskColor2

Typ Color

Klíčová barva uživatelské masky na sejmuté obrazovce, odpovídající barvě BitmapMaskColor2. Tuto hodnotu je třeba nastavit jen v případě, že se tyto dvě barvy liší.

Skip1

Typ Number

Určuje počet výskytů bitmapy Bitmap1, které se při vyhledávání přeskočí.

Skip2

Typ Number

Určuje počet výskytů bitmapy Bitmap2, které se při vyhledávání přeskočí.

Wait

Typ Number

Doba čekání v sekundách na výskyt hledaných bitmap.

CaptureMode1

Typ Number

Definuje oblast vyhledávání bitmapy Bitmap1 (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).

CaptureMode2

Typ Number

Definuje oblast vyhledávání bitmapy 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).

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.

Výstupní parametry

Viz také

Příklady použití

Používání masky

Režimy snímání obrazovky

Řešení více výskytů hledané bitmapy

Časový limit a systémové parametry