Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: polycut on October 07, 2015, 08:41:29 AM

Title: Is it possible to open another application from a Mach3 button?
Post by: polycut on October 07, 2015, 08:41:29 AM
I would like to add a button to the Mach3 screen that will open another application on my Windows OS.

I use this other program to create the GCODE files, that I load up into Mach3.

I could load the program from my Start Menu, but I think it would be pretty cool to launch it directly from Mach3.

I tried just putting the path and file name into a Script and linking that to a button but it through up a compile error.

Any ideas?

Thanks Peeps!
Mark
Title: Re: Is it possible to open another application from a Mach3 button?
Post by: TPS on October 09, 2015, 04:33:20 AM
Hi,

simple example to open the calculator

X = Shell("Calc.exe", 1) ' Shell Calculator.

Thomas
Title: Re: Is it possible to open another application from a Mach3 button?
Post by: polycut on October 09, 2015, 04:47:33 AM
Thanks for that Thomas,

I also found another way - I just changed the G Code Editor path in the General Config options from Notepad to my CAD program, and hey presto, clicking Edit G-Code opens my CAD program.

Think I'll use your method though, so I don;t lose the option of opening Notepad for minor edits.

Cheers
Mark