Custom arguments/parameters for command buttons

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
Programie
Posts: 2
Joined: Mon Jan 14, 2019 9:49 pm

Custom arguments/parameters for command buttons

Post by Programie »

I want to execute a single script with different arguments using the command buttons.

Right now it's just possible to specify the script or application to execute and the currently selected or open file is passed as first argument. But it's not possible to pass additional custom arguments.

Would it be possible to implement passing custom arguments to scripts/applications? Maybe even using some placeholders for the currently open folder, file, etc.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Custom arguments/parameters for command buttons

Post by m.Th. »

+1

Easy to implement.

For placeholders I suggest to use the standard DOS prefix, that is %
So we have:

%current_folder, %current_file etc.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Custom arguments/parameters for command buttons

Post by xnview »

you can add in your xnview.ini, OpenWithParam=
Pierre.
User avatar
Programie
Posts: 2
Joined: Mon Jan 14, 2019 9:49 pm

Re: Custom arguments/parameters for command buttons

Post by Programie »

xnview wrote: Sat Feb 16, 2019 5:10 pmyou can add in your xnview.ini, OpenWithParam=
I'm not sure whether we are talking about the same thing. The command is configured in the default.bar file instead of the xnview.ini.

The command currently looks like the this:

Code: Select all

_cmd_=Some title;/path/to/my/script;
How to pass a custom argument to the command to execute together with the currently opened file/folder?
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Custom arguments/parameters for command buttons

Post by xnview »

My apologies, yes will be good to be able to add parameters
Pierre.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Custom arguments/parameters for command buttons

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Custom arguments/parameters for command buttons

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Pierre.
Post Reply