Custom COMMAND button folder parameter

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Brother Gabriel-Marie
Posts: 286
Joined: Thu Aug 23, 2007 2:33 pm
Location: United States

Custom COMMAND button folder parameter

Post by Brother Gabriel-Marie »

I have an autohotkey script that I want to run against the folder open in XnView, but I can't see any way to pass the FOLDER path parameter into the command.

Also, it seems that if you specify a dll or icl for the COMMAND button icon, there isn't any way to tell it which icon to use from the file.

Actually, I don't think it's even running the script when I push the button. c:\path\folder\script.ahk
It works if I compile it to an exe though.

I have a suggestion, then - if the button is in browser mode and no file is selected, that means there is no parameter passed. I suggest that the parameter be the folder path.

Am I missing something, or is MP? Or are there parameters I can use?
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Custom COMMAND button folder parameter

Post by m.Th. »

I would rather suggest to implement a simple search & replace function: &&p for path, &&f for the current filename.

Something like this. It is much clearer IMHO.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Post Reply