| View previous topic :: View next topic |
| Author |
Message |
Nik
Joined: 29 Sep 2006 Posts: 18
|
Posted: Fri Oct 13, 2006 1:40 am Post subject: Support for Asian Language |
|
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 |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Sun Oct 15, 2006 4:01 pm Post subject: |
|
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 |
|
| Back to top |
|
 |
Nik
Joined: 29 Sep 2006 Posts: 18
|
Posted: Tue Oct 17, 2006 2:25 am Post subject: |
|
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 |
|
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Wed Oct 18, 2006 11:08 pm Post subject: |
|
| 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 |
|
| Back to top |
|
 |
wikiled
Joined: 04 Mar 2007 Posts: 2
|
Posted: Sun Mar 04, 2007 10:08 pm Post subject: |
|
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. |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Tue Mar 06, 2007 12:24 am Post subject: |
|
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ö |
|
| Back to top |
|
 |
wikiled
Joined: 04 Mar 2007 Posts: 2
|
Posted: Tue Mar 06, 2007 1:11 am Post subject: |
|
| 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 ? |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Wed Mar 07, 2007 11:28 pm Post subject: |
|
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ö |
|
| Back to top |
|
 |
|