Custom arguments/parameters for command buttons

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

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

Custom arguments/parameters for command buttons

Post by Programie » Mon Jan 14, 2019 9:53 pm

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: 1518
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Custom arguments/parameters for command buttons

Post by m.Th. » Tue Jan 22, 2019 5:35 pm

+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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

Post Reply