Plugins using interpreters
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 14
- Joined: 2004-05-06, 06:28 UTC
- Location: Australia
Plugins using interpreters
How would i make a plugin using an interpreter to load a plugin in TC,instead of needing to compile all my plugins it would be much easier like this, as i could add to any plugins i would choose to make without the need to recompiling it everytime
what i mean by an interpreter is perl, shells like bash, php and many more
If there isnt a way of doing this, im sure it would increase 3rd party plugin development, as the plugins would be written faster
what i mean by an interpreter is perl, shells like bash, php and many more
If there isnt a way of doing this, im sure it would increase 3rd party plugin development, as the plugins would be written faster
There is a Perl plugin available. look in totalcmd.net
http://www.totalcmd.net/plugring/perlfs.html
http://www.totalcmd.net/plugring/perlfs.html
-
- Junior Member
- Posts: 14
- Joined: 2004-05-06, 06:28 UTC
- Location: Australia
Thank you for that, i could use that, but the question still remains, is it possible to execute plugins through an interpreter, if this was possible, then virtually any language could be used to create a plugin (even BASIC's)
or is the a code frame to support this that only requires tweaking to the specific program running the plugin i will create a example of this procedure
Total Commander Loads Interpreter Plugin
Interpreter Plugin Loads specified interpreter, eg. C:\php\bin\php.exe or c:\perl\bin\perl.exe
Like when bash or apache loads a specific interpreter for whatever the #! is pointing to eg. #!/usr/bin/perl or #!/usr/bin/php, or fopr windows #!C:\perl\bin\perl.exe
Interpreter Loads up and whatever the Interpreter plugin gets by the interpreter, it passes it into Total Commander
Total Commander reponds to what was passed into it in an appropiate manner
or is the a code frame to support this that only requires tweaking to the specific program running the plugin i will create a example of this procedure
Total Commander Loads Interpreter Plugin
Interpreter Plugin Loads specified interpreter, eg. C:\php\bin\php.exe or c:\perl\bin\perl.exe
Like when bash or apache loads a specific interpreter for whatever the #! is pointing to eg. #!/usr/bin/perl or #!/usr/bin/php, or fopr windows #!C:\perl\bin\perl.exe
Interpreter Loads up and whatever the Interpreter plugin gets by the interpreter, it passes it into Total Commander
Total Commander reponds to what was passed into it in an appropiate manner
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
No this is not possible at the moment, as those languages do not support dll binding and callback functions.but the question still remains, is it possible to execute plugins through an interpreter, if this was possible, then virtually any language could be used to create a plugin (even BASIC's)
I switched to Linux, bye and thanks for all the fish!
-
- Junior Member
- Posts: 14
- Joined: 2004-05-06, 06:28 UTC
- Location: Australia
steve_3199 wrote:Yes, but how is saying that going to answer my question
steve_3199 wrote:... is it possible to execute plugins through an interpreter...
Maybe you intended to ask another question, but you didn'tSanskritFritz wrote: No this is not possible at the moment, as those languages do not support dll binding and callback functions.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
-
- Junior Member
- Posts: 14
- Joined: 2004-05-06, 06:28 UTC
- Location: Australia
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
2steve_3199
The answer is still:No, because the question wasnt "can i get plugins that are written in BASIC", instead i was asking "Is it possible to use interpreters as plugins?
Maybe we are misunderstanding something. The way i understand your question is: "can i use an interpreter like basic, or javascript to write a plugin for TC?". If i am not correct, you have to describe your question again, many of us are not native english speaking people.No this is not possible at the moment, as those languages do not support dll binding and callback functions.
I switched to Linux, bye and thanks for all the fish!
-
- Junior Member
- Posts: 14
- Joined: 2004-05-06, 06:28 UTC
- Location: Australia
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Hmm.. It should be fairly straight-forward to write a wrapper for the Windows Scripting Host.. This would enable people to write plugins in VBScript, and any other script language supported by Windows... Provided they put the right function entry points in the scripts, it should be possible to develop all kinds of plugins - lister, packer and FS alike..
Might even be interesting to take this kind of plugin for a test drive
Just copy a DLL with a new name, create the .INI file that specifies the scripts, install it in TC and go 
Might even be interesting to take this kind of plugin for a test drive


Best regards,
Christian Tiberg
Christian Tiberg
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Yeah, bringing the COM close to TC plugins, nice possibilities, like driving Outlook from TC
I'm for the idea. Too bad I dont know how to write a WSH server addon, because I'm not good at COM, but if someone points me to the right direction, i might give it a try...

I switched to Linux, bye and thanks for all the fish!