Hello Guest it is October 18, 2019, 05:57:08 AM

Author Topic: G-code button  (Read 4086 times)

0 Members and 1 Guest are viewing this topic.

Offline Jd

*
  •  10 10
    • View Profile
G-code button
« on: January 26, 2012, 01:49:05 PM »
Hello I have modified Benny's screen to be specific to my mill and uses. I have two problems and maybe the answer to this question will help me with the second. The problem is I like the Gcode chart that comes with Mach3 as it describes a Gcode in some detail and  I will be able to add my own notes to it at a later date. I have tried to link the Gcode button to the VB script in Mach3 to call up this file, but I only get a Script compiler error, I am not very knowledgeable about VB (CB) script but can read and understand the commands, I have copied and renamed the macro, tried putting it into another directory which I don't think would work because the call of the macro is probably in the main program. I have played with some macros and can't seem to get them to work or call up. Can some one lead me in the right direction or help with this probelm?
Re: G-code button
« Reply #1 on: January 26, 2012, 02:22:50 PM »
If I understand, just create a button on your screen, select VB Script Edited in Mach, save then open the new screen.
Just click Operator / Edit Button Script, click on the flashing button then paste this:      HtmlDialog( GetMainFolder()+"Mach3MillGcode.htm" )     in and save.
 
That should do it.
Russ

Offline Jd

*
  •  10 10
    • View Profile
Re: G-code button
« Reply #2 on: January 27, 2012, 10:35:14 AM »
Hello Thanks Overload but that is exactly what I did at first, I created a button and set it up exactly as in the 1024 set with VB script edited in Mach3, and label named G-Codes then saved screen set, opened in Mach3 and got problem with script error, made new dir. If you look at other screen sets they seem to have same problem only the 1024 set file works right, I have restarted Mach3 many times hoping that screenset would find something new but NO! I know I am special, but not that special and not that hard to forget. Your answer is logical, but does not work for me.