converting recordings from 120dpi to 96dpi....

Ask general questions here.
Tintu
Posts: 2
Joined: Wed Dec 16, 2009 9:23 am

converting recordings from 120dpi to 96dpi....

Post by Tintu » Wed Dec 16, 2009 9:29 am

Is there any way to convert and play the recordings that are taken in 120 dpi on 96 dpi screen resolution?

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: converting recordings from 120dpi to 96dpi....

Post by Ciege » Wed Dec 16, 2009 4:15 pm

As long as you are not doing X/Y coordinate clicking based on screen location you should be fine. Ranorex should be able to determine where the object is by name or other identifying property and select it accordingly.

is something not working for you when you switch resolutions? Can you describe what is happening and provide a snippet of your code where the error exists?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: converting recordings from 120dpi to 96dpi....

Post by Support Team » Wed Dec 16, 2009 5:54 pm

In general, the only problem you could have switching from 120 to 96 DPI (and vice versa) are the (absolute) relative coordinates the recorder uses to move/click inside UI elements.

By default, the Ranorex Recorder uses relative coordinates inside the UI elements identified by a RanoreXPath to further specify the move/click location. You can disable that behavior, so the recorder will always click at the center of UI elements, by changing the "Record relative element coordinates" in the recorder configuration (see http://www.ranorex.com/support/user-gui ... ation.html).
Note, though, that this may cause problems with some UI elements, e.g. Ranorex will then always click at the center of a textbox, not at the actual point you clicked when recording. You can then specify relative coordinates that are proportional to the length and width of the UI element (e.g. 0.25;0.25 will click at the upper left part of the UI element), which should be the same on 120 and 96 DPI environments, by editing the "Element Location" property of the individual mouse items. (See http://www.ranorex.com/Documentation/Ra ... ctor_1.htm for documentation on proportional relative locations).

Regards,
Alex
Ranorex Support Team
.
Image