Total Commander Ultima Prime

One For All


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenFileTC -how I can add new app?
#1
I want to add DjVuReader to F3 viewer. I haven't guessed how I can do it in GUI, though guessed to edit ini files directly:

Code:
[Program11]
Name=DjVuReader.exe
FullPath=%COMMANDER_PATH%\PLUGINS\Media\DJ\DjVuReader.exe
SupportedExts=djvu
_OpenAtOnce=1
_CmdLine=%1
OpenAtOnceForAnyExt=0
ForceRunOnAnyExt=1

DjVuReader appeared in the list of applications but when I press F3 on djvu file, I have an error:

Quote:Format of the file <_.djvu> couldn't be determined.

What's wrong?
Reply
#2
In this case you need to change settings as follow:
Code:
[Program11]
Name=DjVuReader.exe
FullPath=%COMMANDER_PATH%\PLUGINS\Media\DJ\DjVuReader.exe
SupportedExts=djvu
ForceRunOnAnyExt=1

You don't need to put next options because they are the same as default:
Code:
OpenAtOnceForAnyExt=0
djvu_CmdLine=%1

Also you don't need to show how application must work on one extension:
Code:
djvu_OpenAtOnce=1
because you set:
Code:
ForceRunOnAnyExt=1

About CmdLine= param: syntax of this parameter is the follow:
Code:
[EXTENSION]_CmdLine=[Command line to open this extension]
You missed extension djvu in your example.
Reply
#3
Hi!

Thanks for quick answer. But your code gives same result: it doesn't work.

What else can be wrong?
Reply
#4
Please write here a link to download this application.
Reply
#5
http://www.skan.ru/en/file/djvureader.zip
Reply
#6
Please try to add the follow param to all params of [Program11] section:
Code:
OpeningOption=4
Also, sorry for wrong information: ForceRunOnAnyExt param isn't needed, you need to use OpenAtOnceForAnyExt=1 instead it.

Also, this application has troubles if OpenFileTC tries to open it using standart methods. So you need to check that this app need to use fourth type of solution: "Run application on each file separately, also send this file as a parameter with quotes" (OpeningOption=4).

So this section will be:
Code:
[Program11]
Name=DjVuReader.exe
FullPath=%COMMANDER_PATH%\PLUGINS\Media\DJ\DjVuReader.exe
SupportedExts=djvu
OpenAtOnceForAnyExt=1
OpeningOption=4
This section is worked on my PC. Please check it from your side.
Reply
#7
Hi!

I have tried it, but the result is still the same. My OS is Win7 x64, probably, that's is the reason.

Thanks a lot for all your efforts!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)