Hello Fabien,
As I wrote: that sample is a macroloop. You have to save it as e.g. M1234.txt into your Profiles\Macro_yourprofilename folder and in UCCNC you have to set it as a macroloop.
But I made an other one (don't use both together, the first macro will overwrite the title!):
- Code: Select all
string[] args = Environment.GetCommandLineArgs();
if (args.Length > 0)
for (int i = 0; i < args.Length; i++)
if ((args[i].Trim().ToUpper() == "/TITLE") && (i < args.Length - 1))
exec.mainform.Text = args[i + 1];
Copy these lines into your M99998.txt macro and if you set a command line switch "/title" then the next parameter will be the title of the program. If you need more than one word, then you have to "put it into quotes", see the example below:
- commandline.png (1.26 KiB) Viewed 8881 times
- title.png (989 Bytes) Viewed 8881 times