Run Application minimized : Automation API

Run Application minimized

Class library usage, coding and language questions.

Run Application minimized

Postby swmatisa » Fri Sep 16, 2011 9:16 am

WinXP SP3 (WindowsUpdate done)
Ranorex 3.1.0
*********************************
Hello,
I need to start an application "minimized". I see it is possible to "maximized", but not "minimized".
My workaround is to click on minimize button. Is there another way?

Thanks for you help.
SW
swmatisa
 
Posts: 54
Joined: Fri Aug 05, 2011 8:52 am

Re: Run Application minimized

Postby Support Team » Fri Sep 16, 2011 10:13 am

Hi,

There is no such functionality because we thought there is no need for it.
Why do you need to minimize your application, what is the sense of it?

Regards,
Markus
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Run Application minimized

Postby swmatisa » Fri Sep 16, 2011 11:16 am

Support Team wrote:Why do you need to minimize your application, what is the sense of it?

Good question: my application under test is communicating and interacting with other applications and hardware systems. To start my test, I need to also start the "test environnement" in minimized mode.

It is a little bit like http://www.ranorex.com/forum/how-to-run-my-application-on-the-second-screen-t2520.html. Multi-Monitor and size managment will be an helpful improvement for a future release :wink:

Best regards
SW
swmatisa
 
Posts: 54
Joined: Fri Aug 05, 2011 8:52 am

Re: Run Application minimized

Postby Support Team » Fri Sep 16, 2011 12:38 pm

Hi,

You can use this CodeModule to run your application in minimized mode.
There are two variables which you can/have to set, the "Application" variable, the path to your exe (i.e. iexplore.exe) and the "Argument" variable for additional arguments (i.e. http://www.google.at).
You can bind them to global parameters.

Regards,
Markus
Ranorex Support Team
Attachments
StartApplicationMinimized.cs
(1.79 KiB) Downloaded 27 times
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Run Application minimized

Postby swmatisa » Fri Sep 16, 2011 3:53 pm

Support Team wrote:You can use this CodeModule to run your application in minimized mode.
There are two variables which you can/have to set, the "Application" variable, the path to your exe (i.e. iexplore.exe) and the "Argument" variable for additional arguments (i.e. http://www.google.at).

Thanks for your code module. It si a good and simple sample of module.

Regards
SW
swmatisa
 
Posts: 54
Joined: Fri Aug 05, 2011 8:52 am


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests