I looked at the steps on pg 14 & they seem to be referring to when you have a problem using an image whereas I am using a textimage. There is not source image to compare against the screen error. Capturing an image of the caption works fine.
I was specifying Tahoma 8pt font. This is what the screen ocr app that I was using was telling me the font was. As it turns out that was not the case. Which I found out after reading jruuska’s post. As for using images rather than textimages. I can understand what you are saying. However the UI that I am interacting with is in the process of changing, plus in the future I believe that they will be adding the ability for individual customers to reskin the app, so reducing the number of images I have to re-capture is important. Not to mention that in a lot of cases I am simply trying to navigate somewhere so using a textimage to specify the menu item, which itself could change, is a lot easier.
I did account for the state (i.e. - active or inactive). Turns out that the screen ocr app I was using to get the font was incorrect. Using your link I was able to determine the actual font. Once I specified “Segoe UI” as the font my code worked.
Thanks to you all for your help so far it seems to be working.
And for anyone else with this issue I found that the following worked for me when interacting with Microsoft Excel 2007 with the Blue color scheme on a Vista machine whose color scheme was set to Windows Standard.
Font: Segoe UI
Text color: 55,109,169 (active); 160,160,160 (inactive)
Background color: 211,230,250 (active); 220,228,237 (inactive)