is there a way to call a packer-plugin from the command line?
I use the Microsoft Help compiler to create my own chm-file.
And, I have found I can reduce the file size afterwards with TC like this:
- open Total Commander (plugin CHMDir.wcx installed)
- left file panel: go to the sources folder for my chm-file (contains Style.css)
- right file panel: go to the target folder, where I have my new chm-file (already there)
- in the right panel: cursor on chm-file - then press Ctrl+PgDn to open like zip-file
- in the left panel: cursor on Style.css - then press F5, Enter, Enter
- wait for completion of the operation
- close Total Commander
- *pat myself on the back*
This whole procedure can be automated with AutoHotkey. I have already done that.
Pseudo code: AHK = [ Run new instance of TC, send keystrokes, wait, close TC ]


This works well within its limitations: AHK has to "remotely" open an application,
and I hope that nothing interferes while the script runs.
That's probably as good as it gets with this approach. Maybe? I don't know.
Now I wonder, is there a way (maybe using RunDLL32.exe?) to construct a command line that will do the same? something like:
RunDLL32.exe %TC_Dir%\Plugins\WCX\CHMDir\CHMDir.wcx,<entrypoint> <optional arguments>
RunDLL32.exe %TC_Dir%\Plugins\WCX\CHMDir\CHMDir.wcx,PackFiles <command> <switches> %CHM_file% Style.css
Thank you for reading this much too long post.
I appreciate any hints.