Page 1 of 1

Custom COMMAND button folder parameter

Posted: Sat Apr 01, 2017 10:04 pm
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?

Re: Custom COMMAND button folder parameter

Posted: Sun Apr 02, 2017 3:59 pm
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.