This is like CAPTCHA and below is HP recommendations on this concern.
CAPTCHA objects are designed to prevent automation
CAPTCHA objects are designed to ensure that a human is interacting with the application, not a computer. These controls are designed to prevent automation. With this in mind, QuickTest Professional does not have a method to capture the text from the object. You will most likely need to test that portion of the application manually.
Here are a couple suggestions you can consider:
1. If possible, limit the CAPTCHA control (during the testing phase) to only a few words/letter combinations. Then use QuickTest Professional to cycle through these defined words/combinations. Again, this limitation on the control would only need to be done in the testing phase.
2. If possible, ask your developers to add a method which will capture the characters used in the CAPTCHA control at runtime. Then, have QuickTest Professional call that method, retrieve the text, and enter it into the field as needed. Once again, this method would only need to be in place while the testing the application.
3. If possible, ask your developers to add a flag that will allow you to bypass the control during the testing phase.
4. Depending on the settings used within the CAPTCHA control, you may be able to use another application (for example, OCR software) to read the text from the image and return that text to QuickTest Professional. Once QuickTest Professional has the text, it can be entered into the field.