QTP/UFT support tip: How to configure Terminal Emulator for text recognition
There are some cases where the user has a unsupported Terminal Emulators(TE) so the hllapi option is not able to works.
On this cases you can configure QTP/UFT in order to get text recognition on the TE.
Click on Tools>Options>Terminal Emulator
Click on Open Wizard
In this Wizard click on next
On this new window select “Configure a new User-defined”
Then Click on next
You will see this new window
Click on next here
On this window you have to select Emulator does not support HLLAPI.
Click on Next
In this window you have to click on each TE Window Part.
Example click on Main window class hand
And then click on the main window of your TE
Click on Text window class hand
Click on Text Window Class
And the same process for the other options (as you can see this one doesn't have toolbar and Status bar so you can point the main window class also on those, however for your TE you have to select the Status Bar and the Tool Bar)
After that please check “Configure Emulator Screen”
And click on Next
Then you will see the Emulator Screen Settings window
And your TE will looks like this
You have to use the controls of the Emulator Screen Settings window in order to set properly the character recognition.
After that click on next
In this last window check the Save settings
And click on finish.
After that click on Apply
After that If you use the object spy on the TE you will see the object.
Remember that you can only use
Properties SetText() and GetText()
- object.GetText ([TopRow], [LeftCol], [BottomRow], [RightCol])
If you find that this or any post resolves your issue, mark it as an accepted solution.
Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any answerd posted."