swipe, drag, select, focus, change, tab, scriptless, script-less, scripted, step, view, stepview

Method SwipeTo

Swipes or Drags from current object to another

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

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

In this example we will swipe from DemoObject1 to DemoObject2 in 0.5 seconds with holding before swipe 0.1 second

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

Variable

destinationObj

Use Object

Step

SwipeTo

destinationObj

500

100

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227