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

Method GetRuntimePosition

Returns runtime position (X, Y, Width, Height), 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 GetRuntimePosition( 
        Long MsTimeOut [Optional],
        Boolean Report [Optional]
)

Step

Get...Position

1500

true

position

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 array(X, Y, Width, Height), (0, 0, 0, 0) if object is not found

Example

VBScript

set pos = Application("Application").View("View").Object("cross-platform").GetRuntimePosition()
msgbox "x: " & pos(0)
msgbox "y: " & pos(1)
msgbox "w: " & pos(2)
msgbox "h: " & pos(3)

JavaScript

var pos = Application("Application").View("View").Object("cross-platform").GetRuntimePosition();
alert("x: " + pos[0]);
alert("y: " + pos[1]);
alert("w: " + pos[2]);
alert("h: " + pos[3]);

Comment

Fill all parameters

Step

Get...Position

1500

true

position

Comment

First parameter is optional. Leave it empty

Step

Get...Position

true

position

Contact Us

1425 Market Blvd Ste 530 - 230

Roswell, GA 30076 USA

(800) 795-3552