New command buttons on toolbar - can we feed in parameters?

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

User avatar
gonefinishing
Posts: 17
Joined: Fri Aug 07, 2009 12:04 am

New command buttons on toolbar - can we feed in parameters?

Post by gonefinishing »

According to this old thread...

viewtopic.php?f=35&t=32557&p=129406&hil ... ar#p129406

...it's "possible to run external editors by adding shortcuts to XnView's toolbar (Tools » Options... » Toolbar » Buttons » Buttons displayed)."

My question is: can we also add parameters to such executables (.exe) files? (it could also be a .bat file, but I've been without seriously fiddling with them for literally decades, so a sample batch file would be more than welcome, assuming we could go down that path)

For example: I'd like to assign to a new button, one of my most used Exiftool commands (which is already set as one of the options under the "Open with" context menu) which goes like ""-FocalLengthIn35mmFormat<${FocalLength#;$_*=1.6}" -overwrite_original -P"

I also fail to check how to tell exiftool to attribute such command to the currently selected file(s).

Anyone able to chime in, please?

Thanks!
User avatar
xnview
Author of XnView
Posts: 44936
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: New command buttons on toolbar - can we feed in parameters?

Post by xnview »

in the .bar file, you can customize like that

Code: Select all

_cmd=name;exe;icon;params
Pierre.