Hello Guest it is March 29, 2024, 11:51:13 AM

Author Topic: Call for G-code display window  (Read 14077 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Call for G-code display window
« on: July 26, 2008, 07:31:45 AM »
Scott,  I am sure you will be able to help with this one.  ;D

Latest versions of Mach have a htm file with the Gcode explanations.  I find I look at it often.

This is the code behind the button,      HtmlDialog( GetMainFolder()+"Mach3MillGcode.htm" )

It opens in what looks like a restricted Internet Explorer window.  It is painfully small and not resizable.

My preferred browser is Firefox.  Is there a call that will open it in my choice of browser window?

Greg

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Call for G-code display window
« Reply #1 on: July 28, 2008, 01:12:34 PM »
Acualy you can have anything open up in anything by adding the path:


IE:
Code: [Select]
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE "+ "C:\Mach3\Mach3MillGcode.htm", vbNormalFocus
FireFox:
Code: [Select]
Shell "C:\Program Files\Mozilla Firefox\firefox.exe "+ "C:\Mach3\Mach3MillGcode.htm", vbNormalFocus
!please take note to have a "Space after the location of the program you want to open the object with!
« Last Edit: July 28, 2008, 01:23:37 PM by zealous »

Offline Greolt

*
  •  956 956
    • View Profile
Re: Call for G-code display window
« Reply #2 on: July 28, 2008, 05:54:26 PM »
Thanks for that Jason. Your the man!!!! ;D

That's just what I wanted.

While I am at it, can I change the "edit code" program from the Notepad default?

Greg

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Call for G-code display window
« Reply #3 on: July 28, 2008, 11:17:51 PM »
Thanks for that Jason. Your the man!!!! ;D

That's just what I wanted.

While I am at it, can I change the "edit code" program from the Notepad default?

Greg
C'mon Greg, that's an easy one. General Config, top center, slightly to the left.  :)
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Call for G-code display window
« Reply #4 on: July 28, 2008, 11:19:45 PM »
Hey Greg,

Under "General Configuration" in Mach you can set the Gcode editor.

Or

If you need total control on what program to open the currentl loaded file in use something like this on the Edit button:

Code: [Select]
DoOEMbutton(168)'**Close the FIle first**

If(FileName="No File Loaded.")Then'**Check to see a file is loaded**

Print"LOAD A FILE FIRST"

Else

Shell "notepad "+ FileName, vbNormalFocus ' **YOU CAN DO THIS FOR NOTEPAD**

'Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE "+FileName, vbNormalFocus'**Or open in what you want**

End If

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Call for G-code display window
« Reply #5 on: July 28, 2008, 11:21:06 PM »
Hey Gerry,
Thats funny we posted at the same time  ;D

Offline Greolt

*
  •  956 956
    • View Profile
Re: Call for G-code display window
« Reply #6 on: July 28, 2008, 11:37:26 PM »

C'mon Greg, that's an easy one. General Config, top center, slightly to the left.  :)


OK OK I feel suitably chastised........I thought I had seen it somewhere.  ;D

Jason,  thanks.

In this case I was not looking for that much control.  Just a better editor than Notepad.

Greg