Forum Discussion
Aurelien
13 years agoContributor
Thanks for the reply Alex.
"If you use language-specific text properties for object recognition (like wText or WndCaption), then you have to specify text in the appropriate language. To minimize possible editing, you can try using text properties that are not language-specific (like WndClass, it's always in English), or use non-text properties (like ChildCount, Height, ScreenLeft and others). Numbers are the same in all the languages :-)."
My Problem is that objects I want to map have the same static properties (Same WndClass, ChildCount etc...). They are buttons on a panel and when you click on it, others buttons appear in the same panel at the same place but with different behaviors. There is always a way to map these objects but since the caption was the only unique property associated to the object, I was hopping to use the possibility to change the NameMapping properties depending the language. It will be painful to specify text for each language (12 languages and more to come).
I will find another way : )
Thanks and regards,
Aurélien
"If you use language-specific text properties for object recognition (like wText or WndCaption), then you have to specify text in the appropriate language. To minimize possible editing, you can try using text properties that are not language-specific (like WndClass, it's always in English), or use non-text properties (like ChildCount, Height, ScreenLeft and others). Numbers are the same in all the languages :-)."
My Problem is that objects I want to map have the same static properties (Same WndClass, ChildCount etc...). They are buttons on a panel and when you click on it, others buttons appear in the same panel at the same place but with different behaviors. There is always a way to map these objects but since the caption was the only unique property associated to the object, I was hopping to use the possibility to change the NameMapping properties depending the language. It will be painful to specify text for each language (12 languages and more to come).
I will find another way : )
Thanks and regards,
Aurélien