Method GetRuntimePosition
Returns runtime position (X, Y, Width, Height), method has internal Exist() call for position recalculation.Usage
Function GetRuntimePosition(
Long MsTimeOut [Optional],
Boolean Report [Optional]
)
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