Hello Guest it is December 06, 2019, 03:22:58 AM

Author Topic: Starting external editor  (Read 2189 times)

0 Members and 1 Guest are viewing this topic.

Starting external editor
« on: December 31, 2006, 07:19:25 PM »
Hi,
I am trying to write a vb script to open an external program from a button push.
I am trying to write code for opening my external editor, which opens and gets focus, I then want to be able to write my gcode file,  return to mach3, where the new gcode is loaded into the gcode window, but I also want to be able to return to my external editor and still have the gcode displayed there as well.
I have tried using the shell command, but this opens a new instance of the editor program each time the button is pushed.  and Appactivate doesn't seem to get focus of the program.
Can anyone please point me in the correct direction.

Regards
Andrew
Re: Starting external editor
« Reply #1 on: December 31, 2006, 08:16:10 PM »
There is an option in the general config dialog in the config menu. at the top second column from the left theres a space that says editor, point the path to your editor, now everytime you press edit code in the main program window, that editor will open,
you can then edit your code, save it, and the gcode in mach will update, if you want to open it again, just press edit g-code again.
Hope thats what you are looking for.
Regards
Fernando