best way to load specific DLL on TC startup

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
timepp
Junior Member
Junior Member
Posts: 4
Joined: 2007-07-05, 14:44 UTC

best way to load specific DLL on TC startup

Post by *timepp »

Hi,

I want to tweak TC a bit using one DLL, for example, to add a key listener that redirect "j" to "down" and "k" to "up", I know Vitac but it's a standalone app that will affect not only TC but other apps.

My first consideration is to write a plugin. But seems there is no such plugin type which will be guaranteed to load at TC startup. I can only think the following ways. none of them is clean:

1. use tcmatch plugin. when user press "j" this plugin is loaded. Then I can do my stuff and automatically send "esc" and "down" to close the search box and move the cursor down. However, I need to modify quick search extended plugin source code to do this. (I cannot leave quick search extended)

2. use DLL injection to inject the DLL and launch TC with a launcher. This way is good so far in my thinking.

------------------------------------------------------------------------
Any other ideas?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You could use the same load method as the TWinkey plugin:
http://ghisler.ch/board/viewtopic.php?t=22950
Author of Total Commander
https://www.ghisler.com
timepp
Junior Member
Junior Member
Posts: 4
Joined: 2007-07-05, 14:44 UTC

Post by *timepp »

ghisler(Author) wrote:You could use the same load method as the TWinkey plugin:
http://ghisler.ch/board/viewtopic.php?t=22950
Wow! a clever and clean way! that's just what I need. Thanks Ghisler!!!
Skif_off
Member
Member
Posts: 132
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

2timepp
And maybe AutoRun (method LoadLibrary).
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW Autorun plugin itself uses the same auto-load way as TWinKey. :D
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

There even was some development on a background plugin interface, see http://ghisler.ch/board/viewtopic.php?t=16682. As the links there in are dead, I uploaded the latest wbx.7z to http://tbeu.de/forum/wbx.7z
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Post Reply