Does Recording1.cs file needs 2 be amended before compiling?

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 24
Joined: Mon Mar 09, 2009 11:50 am
Location: Bracknell, UK

Does Recording1.cs file needs 2 be amended before compiling?

Post by devenb » Tue Mar 10, 2009 11:47 am

I was using the default Ranorex Recorder with the help of Element Browser to get the exact locations of the Elements instead of mouse coordinates, to automate some of our applications.
The Recording1.cs file which is generated alongwith the Ranorex Recorder does not compile and gives errors where the MouseClicks are present.
I had to manually go and change some of the commands to get it working.
For e.g.,
This is the code in the auto generated Recording1.cs file:
repo.MenuBarExplorer.XYZ_Application.Click(MouseButtons.Right, , ,500);
(Check the blanks in the function), which I had to change to something like
repo.MenuBarExplorer.XYZ_Application.Click(MouseButtons.Right,"Center",1,500); to get it working.

Am I doing something wrong here or this is the normal behaviour of Ranorex?

Thanks & Regards,
Deven B.
Last edited by devenb on Tue Mar 10, 2009 2:13 pm, edited 1 time in total.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Tue Mar 10, 2009 2:12 pm

It`s a bug in the current version of Ranorex 2.0
In some cases, there are code generation errors when editing standard parameters of recorder items. It will be fixed in the next release.

Ranorex Support Team