tablacus / TablacusExplorerAddons

Add-ons for Tablacus Explorer
http://tablacus.github.io/TablacusExplorerAddons/
MIT License
87 stars 12 forks source link

Help:How to disable new tab when using Total Commander Lister Plug-in #368

Closed 921j closed 11 months ago

921j commented 11 months ago

Every time using Total Commander Lister Plug-in,Tablacus create a new empyt tab, Is there a way or option to disable this tab created? 2023-09-23_141345

ccfs commented 11 months ago

There is probably not any way to disable the tab. What do you want to do with the MP4 file?

921j commented 11 months ago

There is probably not any way to disable the tab.可能没有任何方法可以禁用该选项卡。 What do you want to do with the MP4 file?您想对 MP4 文件做什么?

Because this WLX plug-in (AppLoader) is used actually making different third-party applications to open video, audio, and picture files based on the file extension, so it does not need to create a new tab, such as opening videos with MPV and using irfanView to open the picture etc., it is equivalent to binding F3's function of "Open with",The [Editor] section of the Apploder.ini file can be binded through the simple editing:

2023-09-25_211632

I want to know if Tablacus also has such addon. It can customize F3 to bind different types of files to different third -party applications according to different extensions, and can transport parameters?

Apploader.wlx http://maximus.in.ua/tcplugins/apploader.php?lang=0

(If you want to ask me “why don't you double-click to open the file”? Because sometimes I only need to browse instead of editing. For example, just want to use IrfanView to browser JPG and PNG, instead of editing it with Photoshop. The starting speed of the two is far from the difference!)

There are two other more questions : My default player is PotPlayer, but when I want to generate a screenshot for some video files to same folder, I want to use MPV. When I customize tablacus's "mouse" addon to open video with MPV by press the mouse middle :

  1. the MPV wasn't running from the directory of the video file, which will cause screenshots is stored in the root directory of the MPV, but Total commande not, I want to know how to open video wiht MPV and from video's path, such as D:\MyVideo>"%ProgramFiles%\MPV\MPV.exe" "D:\MyVideo\MyVideo.mp4" NOT C:\Progra Files\MPV>MPV.exe "D:\MyVideo\MyVideo.mp4"
  2. When I press middle wheel to click the video file from the folder menu list, the video open still with potplayer, not MPV, Why?
ccfs commented 11 months ago

You can use "Execution filter" add-on.

Example to bind F3 key to various applications according to file type: image

Example to bind mouse middle button to various applications according to file type: image

After you have chosen "Execution filter" as "Type", you can click the Browse button consecutively to input filter (file type), command (usually Selected items or Exec) and program path. For "Exec" you have to enter %Selected% which will be replaced by the paths of selected items at use.

Note that, at use, if multiple items are selected, they must be the same type.


The screenshot directory problem is probably due to the command line you start MPV. This one works fine on my computer. The screenshots are saved in the video's directory.

"C:\Portable Apps\mpv\mpv.exe" --screenshot-template=%X{%TEMP%}\%f-%wH%wM%wS


"Folder menu list" is the menu shown by "Hot button", isn't it? Unfortunately, Mouse add-on does not work on the menu.

921j commented 11 months ago

My Bad, I didn't explain the problem clearly! The built-in screenshot function of MPV is normally saved in the same directory as the opened video file; But what I use more is another script, mpv_crop_script : https://github.com/TheAMM/mpv_crop_script This script can directly capture and cut the video screen, which is very easy to use, Can simplify many steps, but unfortunately it seems that the author no longer maintains it. Maybe it is a problem with this script? When I configure output_template=Folder.${ext} in mpv_crop_script.conf, under Total commander with AppLoader.wlx open the video with MPV can save "Folder.png" correctly to same folder, but under Tablacus Not, It save "Folder.png" to MPV's directory. "output_template" not support "%x/Folder"... Use output_template=${path}. Both are OK, but the file name cannot be changed to the desired "Folder.png". Because I don't understand lua scripts., so I had to change the calling directory of MPV. Currently, I can use it this way, but I can’t hide the CMD window... 2023-09-27_203320

How wonderful if the mouse add-on can work on the folder menu list!

ccfs commented 11 months ago

When you run a program from TE, the working folder defaults to the program folder. I find only one exception: drag-and-drop items to an EXE file.

I have successfully saved screen crops to their mp4 file folders using these lines in "mpv_crop_script.conf". mpv.exe is started by Type "Exec" or "Execution filter", without cmd.

#ok output_template=${path}.png
#ok output_template=${path}\..\folder.png
output_template=${path}\..\folder.${ext}
921j commented 11 months ago

Yes!! This parameter is indeed workable, thanks! for your patience! It's very kind of you.

ccfs commented 8 months ago

You may be interested in this new add-on mpv.