'Feed to listbox' feature in FS plugins

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Scythal
Junior Member
Junior Member
Posts: 14
Joined: 2007-12-09, 12:49 UTC

'Feed to listbox' feature in FS plugins

Post by *Scythal »

Hello everybody,

My first post in these forums, although I've been addicted to this tool for many years ;)

I'm currently developing a file system plug-in to browse on an USB-connected device, and it's going on pretty well except I can't seem to find out how to implement a "Feed to listbox" feature from a search result panel. I've searched in these forums and a bit everywhere, tried to isolate in plug-ins which exported functions could possibly enable this feature but so far no luck.

Could someone please point me in the right direction?
Scythal
Junior Member
Junior Member
Posts: 14
Joined: 2007-12-09, 12:49 UTC

Post by *Scythal »

Anyone has a clue about this?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can try something like this:
1. Let the user click on a link to open up your dialog.
2. You will get an FsExecuteFile call to the plugin
3. Show your dialog, and when you return, redirect the path to a new path within your plugin, like this:

If the file is a (symbolic) link, set RemoteName to the location to which the link points (including the full plugin path), and return FS_EXEC_SYMLINK. Total Commander will then switch to that directory. You can also switch to a directory on the local harddisk! To do this, return a path starting either with a drive letter, or an UNC location (\\server\share). The maximum allowed length of such a path is MAX_PATH-1 = 259 characters!
Author of Total Commander
https://www.ghisler.com
Scythal
Junior Member
Junior Member
Posts: 14
Joined: 2007-12-09, 12:49 UTC

Post by *Scythal »

Er, thanks but either it was a reply to someone else's question or I was pretty unclear in mine ;)

When a search is done in the file system managed by my plug-in, the "Feed to listbox" button in the "Find Files" result window is grey - it's disabled. Do I need to export particular functions in order to activate this button?

Currently I'm implementing those:
FsGetDefRootName
FsInit
FsFindFirst
FsFindNext
FsFindClose
FsGetFile
FsPutFile
FsMkDir
FsDeleteFile
FsRemoveDir
FsRenMovFile
FsExecuteFile

To be sure it's clear, I would like to select the files from the search (in the listbox I currently can't get at) and allow to do operations on them like copy, delete and so on.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I misunderstood you - I assumed that you made some kind of search in a dialog box shown by your plugin.

I'm sorry but "feed to listbox" isn't currently supported with plugins.
Author of Total Commander
https://www.ghisler.com
Scythal
Junior Member
Junior Member
Posts: 14
Joined: 2007-12-09, 12:49 UTC

Post by *Scythal »

That must explain why I couldn't find the solution :D

OK, thanks for the reply!
Post Reply