Page 1 of 1

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

Posted: Wed Dec 16, 2009 9:29 am
by Tintu
Is there any way to convert and play the recordings that are taken in 120 dpi on 96 dpi screen resolution?

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

Posted: Wed Dec 16, 2009 4:15 pm
by Ciege
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?

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

Posted: Wed Dec 16, 2009 5:54 pm
by Support Team
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