Page 5 of 5

Re: Conversational Wizards

PostPosted: Tue May 29, 2018 8:54 pm
by dezsoe
Hi Terry,

No. As I wrote than: I make it if you want it. Now I feel that you want it. :)

How do you plan to call a macro from an other folder? My original idea was to scan the current macro folder for macros with that fixed sign at their beginning. OK, I'll make it and after a test we can discuss it.

Re: Conversational Wizards

PostPosted: Wed May 30, 2018 12:43 am
by Dan911
Vmax549 wrote: They really SHOULD have their own folder BUT that is another discussion. :P
(;-) TP


Terry.... if you want your own folder just create it.

Path = Application.StartupPath + @"\Wizard_Gcode1";

Directory.CreateDirectory(Path);

Dan

Re: Conversational Wizards

PostPosted: Wed May 30, 2018 7:31 am
by dezsoe
Hi Terry,

You can get the current profile name from field 900:

Code: Select all
string profilename = AS3.Getfield(900).Substring(8);

Re: Conversational Wizards

PostPosted: Wed May 30, 2018 7:35 am
by dezsoe
And this is the current macro folder path:

Code: Select all
string macropath = Application.StartupPath + @"\Profiles\Macro_" + AS3.Getfield(900).Substring(8);

MessageBox.Show("'" + macropath + "'");