Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xn Convert in Button Bar with drag'n'drop
#2
(11-29-2009, 12:57 PM)damat Wrote: Hi!

Is it possible to create button for Xn Convert in the button bar and drag'n'drop selected files to it?

In menu is works like this:
Cmd=%COMMANDER_PATH%\Plugins\Tools\XnConvert\XnConvert.exe
Param=@%L "-output=%T"

Both selected files and target path are detectednand passed to the converter. But if you'll try to do the same in the button bar, it just won't work.

I have also tried to use %p%n and %s, but it just doesn't work.

Any ideas?
It works...if you select and click, but not when you drag and drop. That's because if you drop a file, TC ignores Param field and sends just the file.
Normally, you can work around it by putting parameters in the cmd field, but TC doesn't replace parameters like %T with their values if you put them in cmd, so it works only when parameters other than the file name are invariable.
Another way is using a batch files that adds the required parameters (it's stronger, because with this approach file names don't have to come last). But it won't be able to guess the target path either.

I think that you can't do it simpler than with an AHK script that gets the path and sends together with the files to XnConvert.
Reply


Messages In This Thread
RE: Xn Convert in Button Bar with drag'n'drop - by m^2 - 11-29-2009, 02:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)