Page 1 of 1

Support for Asian Language

Posted: Fri Oct 13, 2006 12:40 am
by Nik
Hi,
I just want to know if Ranorex APIs can support character of Asian Languages.
For e.g. I have a list items which are in Japanese characters. So can I retrieve the Japanese text of the list item?

I noticed that Ranorex APIs uses char * which I guess will not be sufficient for Asian language text. Can I pass WCHAR as a parameter to API??

Thanks.
Nikhil

Posted: Sun Oct 15, 2006 3:01 pm
by webops
I'm sorry, but Ranorex does not support characters of Asian Languages at the moment.
We are currently working on some new features, you will be able to get and set a lot of new properties of the controls. This new feature works also with Asian Languages. We hope we can release this version in November 2006.
But the bad news: It will work only with .NET Framework 2.0, you need RanorexNet and Visual Studio 2005 (the VS 2005 Express Edition is free).

Jenö Herget
Ranorex Team

Posted: Tue Oct 17, 2006 1:25 am
by Nik
Ok.
So is there any workaround? Can I read the Asian language characters using the handle to a control?

-Nikhil
admin wrote:I'm sorry, but Ranorex does not support characters of Asian Languages at the moment.
We are currently working on some new features, you will be able to get and set a lot of new properties of the controls. This new feature works also with Asian Languages. We hope we can release this version in November 2006.
But the bad news: It will work only with .NET Framework 2.0, you need RanorexNet and Visual Studio 2005 (the VS 2005 Express Edition is free).

Jenö Herget
Ranorex Team

Posted: Wed Oct 18, 2006 10:08 pm
by webops
Nik wrote:So is there any workaround? Can I read the Asian language characters using the handle to a control?
If you have the handle of the control, you can use the Wide char (Unicode) Windows C API funtions:

GetWindowsTextW, GetClassNameW and so on ...

Jenö Herget
Ranorex Team

Posted: Sun Mar 04, 2007 9:08 pm
by wikiled
I'm using 1.0 on .NET 2.0 and Cyrrilic text is shown as ????.
if you don't support unicode symbols and don't have plans in future, maybe you can give directions, which WIN32 function can help me to get element text. This is element, not control, so it doen't have handle so I' can't use GetWindowTextW
To be more specific I tried with Internet Explorer_Server control. But same with Firefox. For some reason, other languages - like Lithuanian, which is probably is also under unicode, your application resolves properly.

Posted: Mon Mar 05, 2007 11:24 pm
by webops
You cannot read the element properties with windows api functions, you have to use COM objects (OLE32.DLL, OLEAUT32.DLL, OLEAUT.DLL).

Which unicode property do you want to read?
We have some C functions in the core with unicode support, i can send you some source samples to read the value, the help or description property of an element, but you cannot read a unicode name property at the moment.

Jenö

Posted: Tue Mar 06, 2007 12:11 am
by wikiled
Yes i understand. I spent a day in remainding old win32 stuff, and relized, what where is no api functions. In my case, as i understand it's necesary connect to IE browser control and try to find control. As i understand you connect to each control in uniqe way ? I implement my own part for listview control, but as i understad for IE is not so easy. Maybe you can give directions, how to read explorer elements ?

Posted: Wed Mar 07, 2007 10:28 pm
by webops
You can find a lot of source samples in the Internet. You have to use COM objects.
Search for the following: SHDOCVW, MSHTML or OLEACC (CodeGuru.com, CodeProject.com, etc.).

Jenö