get, runtime, width, size, scriptless, script-less, scripted, step, view, stepview

Method GetRuntimeWidth

Returns runtime Width property, method has internal Exist() call for position recalculation.

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function GetRuntimeWidth( 
        Long MsTimeOut [Optional],
        Boolean Report [Optional]
)

Step

ZAP Object step

GetRuntimeWidth

1500

true

width

MsTimeOut

Report

Parameters

MsTimeOut (optional)

Type: Long

Default Value: -1

Optional timeout value in milliseconds

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Returns runtime Width, 0 if object is not found

Example

VBScript

width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth()
'set optional parameters
width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth(1500, True)

JavaScript

var width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth();
// set optional parameters
width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth(1500, true);

Comment

Fill all parameters

Script-Less next step

Step

ZAP Object step

GetRuntimeWidth

1500

true

width

Script-Less next step

Comment

First parameter is optional. Leave it empty

Script-Less next step

Step

ZAP Object step

GetRuntimeWidth

true

width

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552