Source language: Translate to:

Command sections inside plugins

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Command sections inside plugins

Postby luishp » Sun Jun 17, 2007 11:58 pm

Finally i've been learning some Turbo Delphi and doing some windows security research to develop my very first Plug-in for NeoBook.
And it works!!!

For more information and download please see the forum plugin's section:

http://www.neosoftware.com/forum/viewtopic.php?t=15233

In any case i don't know how to create diferent sections of commands in the plugin, so now they are all in a big list.

May anyone be so kind to send me a sample code?

Thank you in advance.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Mon Jun 18, 2007 12:03 am

Insert such line will help:

nbAddAction( 0, 'YourCommandSection', '',[ACTIONPARAM_NONE], 0 );
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Mon Jun 18, 2007 12:09 am

Thank you very much.
You have been really fast answering!!!
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Mon Jun 18, 2007 12:22 am

luishp,

Just a few thoughts about your first plugin:

Since your commands are all non-visible, the size of your NBP seems a bit high.
You may remove some units from your uses section like forms etc. to not embed the VCL from delphi.
Then there is no need to think about a seperate NBR version.

You have hardcoded the ON/OFF commands.
May be you should only code one command and add a parameter for the switch like 0/1.
This will keep the command list shorter.

PS: Wellcome the the neobook freeware plugin developers!
;-)
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Mon Jun 18, 2007 2:47 am

Thank you very much again HPW for your thoughts and suggestions. I do really apreciate them.
I know i have a lot to learn yet.
Just ten days ago i didn't know much about Delphi and Plugins, and now i have asimilated too much information.
What i wanted (and needed) was the plugin to work and surprisingly it works nice.
I will try to optimize the plugin within the next days.

Thank you also for all your plugins!!!
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Mon Jun 18, 2007 3:01 am

Just ten days ago i didn't know much about Delphi and Plugins, ...


I was in the same situation (a few years back of cource) so I can understand you very well.
;-)
So keep learning!
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby dec » Mon Jun 18, 2007 3:53 am

Hi,

Time ago I write exactly the same ask Luis, and Hans is right here to response me too!

But this not that I like said... sorry. I like said that in my NeoPlugins site you can download all the source code of plugins, even written in Delphi. Maybe you can to take some advantage of this... in any sense.

And in any case I invite you to participate on ClubDelphi.com, a site (from more than ten years ago) where you can find help about Delphi programming. Is a very nice community... I participate on this! :D

Is all. Thanks again Hans and good lucky Luis.

PD. http://dec.clubdelphi.com/
Last edited by dec on Tue Jun 26, 2007 12:24 am, edited 2 times in total.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby luishp » Mon Jun 18, 2007 4:35 am

Thanks to you too dec.
I have just downloaded the source code of your very appreciated plugins.
Hope to have time and intelligence enough to learn a lot from them.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby dec » Mon Jun 18, 2007 4:45 am

Hi,

Hope to have time and intelligence enough to learn a lot from them.


Oh no... maybe some of patience dosis... but you can take some parts... some functions, routines, etc. As your own risk. :)
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 2 guests