Newbie question about Lister plugin loading

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
zsgm02
Junior Member
Junior Member
Posts: 19
Joined: 2005-02-02, 08:55 UTC

Newbie question about Lister plugin loading

Post by *zsgm02 »

Guys,

I have finished my Lister plugin (will publish soon after thorough testing), which displays a custom media tag for music files.

However, accessing it through pressing F3 and then the '4' key seems a bit inconvenient to me - is there a way, either by changing TC configuration or by adding some code to my plugin, to make my Lister invoked immediately?

I tried to enable 'Multimedia Display' in Lister configuration, but it eventually started playing the music file, instead of looking for plugins. My detectstring is: "multimedia | (ext=\"mp3\" | ext=\"ogg\" | ext=\"mpc\")".

Any help is appreciated!

Thanks,
Zoltan
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The decision which plugin is loaded first is made by the users of your plugin, not you:
If the plugin is placed at position one in the lister order it will be loaded before other alternatives with comparable detect strings and the decision if lister is started in multimedia mode is made in lister config dialog:
"Load bitmaps at startup..."
Multimedia has to be unchecked.

Why do you mask the quotation marks in your detect string?
Try "MULTIMEDIA & ext="MP3" | ext="ogg" | ext="mpc""

Icfu
This account is for sale
zsgm02
Junior Member
Junior Member
Posts: 19
Joined: 2005-02-02, 08:55 UTC

Post by *zsgm02 »

Actually I copy-pasted my c++ #define, which requires to escape all special characters, including quotation marks.

I have changed the configuration of the Lister as you have suggested and the behavior did change - now my Lister plugin comes up for every types of files, which is kind of interesting behavior.

I also changed the detect string to "multimedia & (ext="mp3" | ext="ogg")". What is wrong?
zsgm02
Junior Member
Junior Member
Posts: 19
Joined: 2005-02-02, 08:55 UTC

Post by *zsgm02 »

Nothing goes wrong. I didn't reinstall the plugin.:)

Anyway, thanks for the help!
Post Reply