Ranorex

How to use Controlproxy

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
arishahsan



Joined: 18 Jan 2007
Posts: 26

PostPosted: Fri Mar 16, 2007 3:22 pm    Post subject: How to use Controlproxy
I was using Rannorex ControlProxy to automate those Gui controls which dont have ControlName and I didnt find the way to perform the task.
Could you suggest me how to use ControlProxy ....Here is the code which I have used..
Ranorex.Form tempForm = Ranorex.Application.FindFormTitle("MySoftware")
RanorexSpy.ControlProxy temp2 = new RanorexSpy.ControlProxy(tempForm.Handle);
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Fri Mar 16, 2007 8:43 pm    Post subject:
You can automate only .NET controls with the Proxy class, but .NET controls have a ControlName.

Use Form.FindControlId, Form.FindClassName or the Element.FindChild function to find and automate GUI controls which don't have a control name.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum