Hi Matty,
there is another way to call functions in Plugins: you can export DLL-Functions and call them from VB.
it has the advantage to calling your plugin in a private way without a broadcast to all plugins like NotifyPlugins
As an Example:
in your DLL (the plugin) you have a function
EXTERN_C DLLEXPORT void MyPluginFunction (long Parameter1, long parameter2)
{
// Do what you want
}
Then in a script with VB from Mach3 you can call it the following way:
Declare Sub MyPluginFunction Lib "PlugInName" (ByVal Parameter1 As Long, ByVal Parameter2 As Long)
Call MyPluginFunction (1, 2)
Bye, Steffen