I should sorry, this was done month ago, when plugins framework was just created, but I permanently forget to post it :"> Not much tested, so here can be bugs - as usually.
Example of using included. You need Autoit Beta at least version 3.1.1.72 to use it. captplugin.zip