Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: j9k on February 11, 2008, 06:54:54 AM

Title: process for using a different editor
Post by: j9k on February 11, 2008, 06:54:54 AM
1)  copy/paste the editor executable into it's own folder 

2)  rename "notepad.exe"

3)  copy

4)  delete notepad in the "windows" dirrecory

5) paste your new "notepad.exe"

for some reason if you try to delete notepad and rename another file notepad windows will automatically put another notepad in the windows dirrectory.

i'm sure there are some consequences to this but who cares!  notepad can't handle large files.

j9k
Title: Re: process for using a different editor
Post by: Jeff_Birt on February 11, 2008, 09:09:22 AM
OR...you can just change the program that Mach Launches when you click the 'Edit GCode' button  ;) . Go to Config->General Configuration, top of second column. just set that to the editor of your choice.


Title: Re: process for using a different editor
Post by: zealous on February 11, 2008, 11:09:23 AM
If you really want control you can do some VB on a button script  ;)
This will open the currentl file loaded in Mach with Notepad...but you can tell it any program you want

Code: [Select]
Private Sub Form_Load()
Dim dTaskID As Double, path As String, file As String
path = "C:\WINDOWS\notepad.exe"
fileToLoad = Filename
dTaskID = Shell(path + " " + fileToLoad, vbNormalFocus)
MsgBox ("Text loaded")
End
End Sub
Title: Re: process for using a different editor
Post by: Jeff_Birt on February 11, 2008, 11:19:52 AM
Isn't that what the 'Edit G-code' button on the main screen already does? But then I guess folks may be using diffrent screens so your point is well taken...
Title: Re: process for using a different editor
Post by: zealous on February 11, 2008, 11:52:57 AM
 ;D forsure the VB way is the long and slow way around doing what Art's already done in C++  ;D, but it might help if you want to mix it up with other code
Title: Re: process for using a different editor
Post by: j9k on February 11, 2008, 05:52:09 PM
thanks jeff.....  i totally missed that

j9k