You are here

How to start a program maximized with parameters?

8 posts / 0 new
Last post
Peter8087
Offline
Last seen: 5 years 4 months ago
Joined: 2013-07-06 12:43
How to start a program maximized with parameters?

I want to make a program to start maximized when i launch it and i add this line in AppNamePortable.ini file:
AdditionalParameters=/maximized
But it doesn't work.

On the installed version of the program if i create a shortcut of the .exe file and from Properties set it to run in maximized window it works, but for portable launcher doesn't work.

I hope someone can help me with this!

John T. Haller
John T. Haller's picture
Online
Last seen: 10 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Can't

You can't right now, unless you write a custom launcher. A windows shortcut only attempts to start the launcher as maximized, which isn't passed to the actual app as you've seen. PAL doesn't currently have an option to pass the info to the base exe itself either.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 19 hours 41 sec ago
DeveloperModerator
Joined: 2008-07-24 18:46
move & rename

You need to move & rename AppNamePortable.INI.

It needs to be located beside appnamePortable.exe.

It'll look like this:

X:\PortableApps\appnamePortable
-->appnameportable.exe
-->appnameportable.ini

Peter8087
Offline
Last seen: 5 years 4 months ago
Joined: 2013-07-06 12:43
My .ini files are renamed

My .ini files are renamed with proper names and also in the correct directory, but still doesn't work.

As i said if i create shortcut from the installed version of the program in Program Files directory and set it to run in maximized window it works. I thought if it works for the standard installed version it should work for the portable install too.

So, it is not possible to start the program maximized with parameters? That's not good.

John T. Haller
John T. Haller's picture
Online
Last seen: 10 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not How It Works

Passing /MAXIMIZED to a program does not start it maximized unless the app itself supports that as a command line option (most apps do not). See my post above about how shortcuts work.

Sometimes, the impossible can become possible, if you're awesome!

Peter8087
Offline
Last seen: 5 years 4 months ago
Joined: 2013-07-06 12:43
I am confused about in which

I am confused about in which files the parameters can be used. In the manuals it says a parameter can be used in AppNamePortable.ini which is in the same directory as the portable launcher. And also that parameters can be used in launcher.ini file with CommandLineArguments.

If the program supports parameter to start maximized where is correct to put this parameter?

John T. Haller
John T. Haller's picture
Online
Last seen: 10 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Correct

If an app supported it, as a user, you'd put it in AppNamePortable.ini in the same directory as AppNamePortable.exe. As a developer, if you wanted something to affect all users, you'd put it in the launcher.ini. Note that you would not put a maximize setting in launcher.ini to affect all users because not all users would want it maximized.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 19 hours 41 sec ago
DeveloperModerator
Joined: 2008-07-24 18:46
see John

Ah, I misunderstood. I thought you were passing a command line parameter that the application recognized. Since that doesn't appear to be the case, see John's comment above.

Log in or register to post comments