Ranorex Layout Methods
Posted: Mon Oct 18, 2010 5:47 pm
This post is rather vague. Im just looking for some direction to get me started.
Basically, I have a form with the following xPath
/form[@title~'^TacViewC2\ \ \ \(map:\ DefaultMap\.map\)\ \(terra']
This form is just a rectangular map, where you can right click on the map to add other elements. In Ranorex Spy I can see under the Details tab the various Layout properties for this form. Including Height and Width.
Eventually I want to write code that will randomly right click anywhere within the confines of this form, but I have to avoid right clicking near the edges. For instance, if the form is 100 x 120, I want to randomly click within the confines of 80 x100.
Are there any Ranorex or C# Layout methods I can further investigate to help me accomplish the above? Thanks
Basically, I have a form with the following xPath
/form[@title~'^TacViewC2\ \ \ \(map:\ DefaultMap\.map\)\ \(terra']
This form is just a rectangular map, where you can right click on the map to add other elements. In Ranorex Spy I can see under the Details tab the various Layout properties for this form. Including Height and Width.
Eventually I want to write code that will randomly right click anywhere within the confines of this form, but I have to avoid right clicking near the edges. For instance, if the form is 100 x 120, I want to randomly click within the confines of 80 x100.
Are there any Ranorex or C# Layout methods I can further investigate to help me accomplish the above? Thanks