Page 1 of 1

Window size: Registry entries beat RunApplication setting

Posted: Wed Aug 27, 2014 4:55 pm
by AshTon
Hi,
I have a problem using the RunApplication method. I'd like to start my AUT maximized and for this purpose I set 'bool maximized' to 'true'. Everything works fine as long as the application was most recently closed in maximized state. If this is not the case, the AUT first gets started maximized, but then is set to the main window sizes which are stored in the registry under "CurrentUser\Software\CompanyName\ProductName\ProductVersion\Windows".

This problem only occurs within Ranorex (5.0.3). When I e.g. use a script to start the application maximized via COM, everything works fine - no matter what window state was given before. Does anyone have a clue what could solve this?

Re: Window size: Registry entries beat RunApplication setting

Posted: Fri Aug 29, 2014 12:59 pm
by Support Team
Hi AshTon,

Unfortunately, we are currently not able to reproduce this issue. May I ask if it’s possible for you to provide a demo application which illustrates the issue? If yes, please send an email to: [email protected]

Thank you in advance.

Regards,
Robert

Re: Window size: Registry entries beat RunApplication setting

Posted: Thu Sep 04, 2014 2:45 pm
by Support Team
Hello,

In order to overcome the issue, you could use following workaround:
Host.Local.RunApplication();

Delay.Seconds(5);

Form form= "/form[@controlname='ControlName']";
form.Maximize();
Regards,
Robert