Support for Asian Language

Class library usage, coding and language questions.
Nik
Posts: 18
Joined: Fri Sep 29, 2006 1:35 am

Support for Asian Language

Post by Nik » Fri Oct 13, 2006 12:40 am

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

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Sun Oct 15, 2006 3:01 pm

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

Nik
Posts: 18
Joined: Fri Sep 29, 2006 1:35 am

Post by Nik » Tue Oct 17, 2006 1:25 am

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

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Wed Oct 18, 2006 10:08 pm

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

wikiled
Posts: 2
Joined: Sun Mar 04, 2007 4:18 pm

Post by wikiled » Sun Mar 04, 2007 9:08 pm

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.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Mon Mar 05, 2007 11:24 pm

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ö

wikiled
Posts: 2
Joined: Sun Mar 04, 2007 4:18 pm

Post by wikiled » Tue Mar 06, 2007 12:11 am

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 ?

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Wed Mar 07, 2007 10:28 pm

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ö