Hello Guest it is March 28, 2024, 08:27:50 AM

Author Topic: process for using a different editor  (Read 3618 times)

0 Members and 1 Guest are viewing this topic.

Offline j9k

*
  •  5 5
    • View Profile
process for using a different editor
« 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

Offline Jeff_Birt

*
  •  1,107 1,107
    • View Profile
    • Soigeneris
Re: process for using a different editor
« Reply #1 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.


Happy machining , Jeff Birt
 

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: process for using a different editor
« Reply #2 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

Offline Jeff_Birt

*
  •  1,107 1,107
    • View Profile
    • Soigeneris
Re: process for using a different editor
« Reply #3 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...
Happy machining , Jeff Birt
 

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: process for using a different editor
« Reply #4 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

Offline j9k

*
  •  5 5
    • View Profile
Re: process for using a different editor
« Reply #5 on: February 11, 2008, 05:52:09 PM »
thanks jeff.....  i totally missed that

j9k