Textutil object in UFT

TextUtil object is used to get the text displayed in a window or a computer screen
 
text = TextUtil.GetText(windowHandle)

Below line of code will get the text from screen within specific rectangular portion of the screen. Note that we can not execute below code on 64-bit system
 
text = TextUtil.GetText(0, 10, 10, 300, 300)

handle = Window("Notepad").GetROProperty("hwnd")
msgbox TextUtil.GetText(handle)

Below image shows the GetText method in action.

Web development and Automation testing

solutions delivered!!