The area is defined by pairs of coordinates that designate two diagonally opposite corners of a rectangle.
Notes:
The GetVisibleText method may behave differently in different run sessions depending on the operating system version you are using, service packs you have installed, other installed toolkits, the APIs used in your application, and so on.
To avoid failed runs, it is highly recommended to use the GetROProperty method or the Object property to retrieve the value of the text (or equivalent) property from an object in your application instead of using the GetVisibleText method.
This method is supported only in Windows 2000 and Windows XP.
You can also check whether a specified text string is contained in a specified window area using the TextUtil.GetText method. For more information, refer to the Utility section of the Object Model Reference.
Argument Description
object A test object of type ActiveX.
Left Optional. A Long value. The left coordinate of the search area within the object抯 window.
Top Optional. A Long value. The top coordinate of the search area the object抯 window.
Right Optional. A Long value. The right coordinate of the search area within the object抯 window.
Bottom Optional. A Long value. The bottom coordinate of the search area a within the object抯 window.
Note: If the Left, Top, Right, and Bottom arguments are not specified, the method returns all of the text within the visible part of the specified object.