Het forum

Windows commandline parameter (MoHPA)

MoHPA

Auteur Antwoorden
Marlowe Zaterdag 25 Augustus 2012 om 3:14
MarloweAnonymous

How can i pass windows commandline parameters to an exe file

e.g.

"c:\\MOHPA.exe" +set ui_console 1

This would enable the game condole.

Which way i can add this to the pol Shortcuts?

Thank You

Phil
petch Zaterdag 25 Augustus 2012 om 7:14
petch


Configure button > (select shortcut) > General tab > Arguments

"Arguments" seems to be the correct technical wording for it, but maybe it would be easier to find if it was called "Parameters"?

Looking for false friends, I've found "Leave the default location" (where should I go now? :P)
If you find other broken or at least non idiomatic wordings, feel free to report them...

Aangepast door petch

Marlowe Zaterdag 25 Augustus 2012 om 10:56
MarloweAnonymous

Thank you. Yeah this should be the right one. In german-langpack it's really called parameter. It adds the parameter to the Shortcut-script.
But unluckily it does not really work.... perhaps i'll try different programms and functions
petch Zaterdag 25 Augustus 2012 om 11:49
petch

Never heard of it not working though, so you must be doing something wrong.
Marlowe Zondag 26 Augustus 2012 om 0:16
MarloweAnonymous

I think there is a little bug.
When i add the parameters, in the shortcut script it is savad in this kind
POL_Wine MOHAA.exe +set developer +set ui_console 1 +set cheats 1 +set thereisnomonkey 1 "$@"
That does not work.

If i change it this way:
POL_Wine "MOHAA.exe" +set developer +set ui_console 1 +set cheats 1 +set thereisnomonkey 1 "$@"
It will work. The exe should be in "marks".

Phil
petch Zondag 26 Augustus 2012 om 0:23
petch

I don't see how it could make any difference, because they're only seen by the shell interpreter.