Hello Guest it is April 24, 2024, 11:50:56 PM

Author Topic: Pluging and Macro interaction?  (Read 7206 times)

0 Members and 1 Guest are viewing this topic.

Re: Pluging and Macro interaction?
« Reply #10 on: December 23, 2009, 10:54:15 PM »
I think, VBA in a Plugin is not possible.

But the access to all of the Mach3-Functions you have in VBA you have in the plugin too. The only thing it is in C, not VBA.

eg
in VBA:
Code: [Select]
Call SetOEMDRO (818, GetOEMDRO (818) * 1.1)in C in aPlugin:

Quote
scripter.SetOEMDRO(818, scripter.GetOEMDRO (818) * 1.1);

VB should be possible, but not VBA I think.

In both cases you have to compile those scripts or you have to build your own interpreter.

That's all, not more, not less.

Bye, Steffen

Re: Pluging and Macro interaction?
« Reply #11 on: December 24, 2009, 04:29:43 PM »
thanks steffen
script engine is in heart of mach and not accessible from plugins...   8) but VBA core function are available to C, i could use python or java script, but it doesn't worth it.