Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Nitromuse on October 05, 2012, 10:49:54 AM

Title: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 05, 2012, 10:49:54 AM
Hello World,
I've written some very effective macros but now the time has come to lock them down.  Is there a way to compile a macro so it can't be seen or changed?  Assuming a 'no' answer what is the simplest way of accomplishing this, a wizard, plugin, or brain?  I program in VB.Net already.
Thanks for your help.
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: BR549 on October 05, 2012, 11:13:21 AM
You can compile the CB macros with the mach3 CB editor.

(;-) TP
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 05, 2012, 11:22:16 AM
but then it is still readable and changeable, isn't it
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: BR549 on October 05, 2012, 11:26:17 AM
NOPE

Here is a sample of a Macro that was compiled.

(;-) TP
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 05, 2012, 11:32:07 AM
OK, thanks, I'll give it a shot
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 07, 2012, 02:55:07 PM
BR549
When you speak of the CB Editor are you speaking of the VB Script Editor on the Operator tab?  If so, how do you get it to compile a .m1s file?  And how do you get a .mcc file to run from the MDI?
Thanks again for your help.
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: BR549 on October 07, 2012, 04:10:15 PM
YES the VB Script editor.   Save the files under the option SAVE AS then select *.MCC. 

Make sure you name it as a Mcode for example   M355.mcc

So should be able to then call it from the MDI line.

(;-) TP
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 07, 2012, 04:29:40 PM
Damn, I should have been able to figure that out!
Thanks once again.
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: adamchapman on October 21, 2012, 01:56:28 PM
Is it then possible to license these macros?

I have spent a lot of time developing a macro that I'd like to sell, but am worried about it spreading freely through the interwebs.


Title: Re: Macros, Wizards, Plugins, and Brains
Post by: Nitromuse on October 21, 2012, 02:24:12 PM
Licensing, is a good quesion, and one that I can't answer.  But if it can't be seen or edited it seems it's pretty safe.  Take the example above, copy it into your system and see if there is any way you can find to see/edit it.  I couldn't.
Good luck.
Title: Re: Macros, Wizards, Plugins, and Brains
Post by: BR549 on October 21, 2012, 05:53:48 PM
As Nitro said just compile it and no one can see the CB code.

NOW somewhere in the world there may be a decompiler but that is Coding life.

(;-) TP