Hello Guest it is August 26, 2019, 01:29:57 AM

Author Topic: edit button script will not save in R3.042.040  (Read 13582 times)

0 Members and 1 Guest are viewing this topic.

Offline miket

*
  •  18 18
    • View Profile
edit button script will not save in R3.042.040
« on: January 09, 2011, 07:56:19 AM »
Hi,
I upgraded Mach3 recently to R3.042.040 from R2.0.065.
In the old version 'Edit button script' saved any changes to the button as expected but
in the new Mach3 version I just can't get it to change any key's VB script.
I also noticed that after a screen save within Mach3 the *.set file does not get updated (same old script contents)
but the date and time does.
Also, under XP the directory Mach3/macro attribute is 'read only' and can't be changed.

I must be doing something stupid - any ideas?
Thanks

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: edit button script will not save in R3.042.040
« Reply #1 on: January 09, 2011, 12:39:05 PM »
If all your files are set to read only, then that's the problem. Did you copy them from a CD? That'll do that. You need to right click on the files, choose properties, and remove the read only attribute.
Gerry

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

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

Offline miket

*
  •  18 18
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #2 on: January 09, 2011, 01:26:04 PM »
Thanks for the reply but resolved the problem.
It was a wrong startup script for the keygrabber and not the read only attribute.

Offline miket

*
  •  18 18
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #3 on: January 14, 2011, 06:29:59 PM »
HI,

I thought I had resolved this problem but alas NO.
If I start Mach3 with /p myprofile all is well. When I edit a macro under mach3/macro/myprofile
the file is modified and saved but when I start mach3 with the following
c:\mach3\keygrabber.exe /p myprofile the macro being edited does not show the modifications after a save
although the file under macro/myprofile has been modified and saved.

Keygrabber must be redirecting the file source directory or making it read only.

Again I ask the community for a resolution to this.
Thanks.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #4 on: January 14, 2011, 06:44:10 PM »
Just tested here and it seems fine. Try clicking the File menu then save in the editor and see if that makes a difference, well thats if its not what you are already doing.
Hood

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: edit button script will not save in R3.042.040
« Reply #5 on: January 14, 2011, 06:58:52 PM »
Are you saying the file is saved, but Mach3 is not reading that file, but an older version??
Gerry

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

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

Offline miket

*
  •  18 18
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #6 on: January 15, 2011, 06:02:41 AM »
I tried again and it's confusing!

For example: I edit the Hiddenscript for Auto Z macro (in macros/myprofile using a Windows editor without Mach3 running
and confirm the changes. I then start mach3 using Keygrabber.exe /p myprofile  and open 'Zero Z macro' the file does not
reflect the previous changes!! So which file has it opened and from where?
The file I changed using a windows editor has now been changed back by Mach3.

When I start mach3 without keygrabber and modify hiddenscript prior to the run the file opens without the changes but
changing it in mach3 is fine.

Also, why is this file called Hiddenscript and why not have an unique macro file name for all programmable keys on mach3 screens?

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #7 on: January 15, 2011, 06:26:51 AM »
If I am understanding correctly what you are saying I think you are maybe getting confused. You mention Hidden Scripts , that is not really a macro, it just seems to be the last macro you edited but it wont actually change any macro.
If editing a button script the script is contained in the button and not in the macro folder so you can only ever change by using the Edit button scripts in Mach.
If I misunderstood what you are meaning then I appologise.
Hood

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: edit button script will not save in R3.042.040
« Reply #8 on: January 15, 2011, 08:01:29 AM »
As Hood says, you're doing it wrong. In Mach3, go to Operator > Edit Button scripts. Click on the button, and edit the code. Then save "HiddenScript.m1s". This is the ONLY way to edit scripts in Screen buttons. This is actually saving the macro in the screenset, and NOT in HiddenScript.m1s.

Opening HiddenScripts.m1s from the \macros folder is NOT the same file.
Gerry

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

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

Offline miket

*
  •  18 18
    • View Profile
Re: edit button script will not save in R3.042.040
« Reply #9 on: January 15, 2011, 09:21:15 AM »
OK. I agree the button macros are stored in the *.set file. When I run via Keygrabber as before and modify a key macro then modify and save the
named *.set file it has an updated time stamp as expected. The problem is when I search the *.set file using a hex file viewer the contents of that embedded macro has not changed. It only changes if I start mach3 without the initial Keygrabber preamble.