Hello Guest it is December 26, 2024, 06:28:18 PM

Author Topic: Is it possible to open another application from a Mach3 button?  (Read 2815 times)

0 Members and 1 Guest are viewing this topic.

Is it possible to open another application from a Mach3 button?
« 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

Offline TPS

*
  •  2,539 2,539
Re: Is it possible to open another application from a Mach3 button?
« Reply #1 on: October 09, 2015, 04:33:20 AM »
Hi,

simple example to open the calculator

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

Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Is it possible to open another application from a Mach3 button?
« Reply #2 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