Method SwipeTo

Swipes or Drags from current object to another

Usage

Function SwipeTo( 
        ZAPObject SwipeDestinationObject,
        Integer MsSpeed,
        Integer MsHoldBeforeSwiping
)

Step

ZAP Object step

SwipeTo

destinationObj

500

100

ZAPObject SwipeDestinationObject

Integer MsSpeed

Integer MsHoldBeforeSwiping

Parameters

SwipeDestinationObject

Type: ZAPObject

ZAPObject where application has to swipe

MsSpeed

Type: Integer

The time it takes for the entire operation in milliseconds

MsHoldBeforeSwiping

Type: Integer

Delay on object focus before start swiping in milliseconds

Returns

No return value

Example

VBScript

Set destinationObj = Application("Demo").View("DemoView").Object("DemoObject2")
Application("Demo").View("DemoView").Object("DemoObject1").SwipeTo destinationObj, 500, 100

JavaScript

var destinationObj = Application("Demo").View("DemoView").Object("DemoObject2");
Application("Demo").View("DemoView").Object("DemoObject1").SwipeTo(destinationObj, 500, 100);

Comment

Save ZapObject to variable and swipe to it

Script-Less next step

Variable

destinationObj

ZAP Object step

Use Object

Script-Less next step

Step

ZAP Object step

SwipeTo

destinationObj

500

100