Supporting custom controls

Class library usage, coding and language questions.
relrotciv
Posts: 1
Joined: Fri Apr 20, 2007 1:27 pm

Supporting custom controls

Post by relrotciv » Fri Apr 20, 2007 1:32 pm

I have an application that uses custom controls such as non-standard grid implemented as a separate module. Mouse clicks over the grid are recorded by mouse coordinates rather than by grid elements (that is, after window resize teh script will select a different grid item). Can Ranorex handle this? I could add support for some windows messages in teh grid but this needs to be supported on ranorex side. Thanks, Victor

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

Post by admin » Sat Apr 21, 2007 8:03 am

You can try the Element approach first, please check the elements of the control with RanorexSpy. If you can identify the elements uniquely, than you can use the Element.FindChild function to find the grid elements and the other element or mouse functions to automate the grid (Mouse.MovoToElement, Mouse.ClickElement).

If you cannot identify the grid elements uniquely, than you can add support for some windows messages in the grid, as you mentioned.
but this needs to be supported on ranorex side.
Yes, you can implement it yourself (extend the existent RanorexCore library) or we implement it for you (we make sometimes special extensions for our user).

Please contact us if you would like us to do it for you.
Which language do you plan to use?

Jenö
Ranorex Team