Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:53:57 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  edit button script will not save in R3.042.040
Pages: 1 2 3 »   Go Down
Print
Author Topic: edit button script will not save in R3.042.040  (Read 1224 times)
0 Members and 1 Guest are viewing this topic.
miket
Active Member

Offline Offline

Posts: 18


View Profile
« 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
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« 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.
Logged

miket
Active Member

Offline Offline

Posts: 18


View Profile
« 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.
Logged
miket
Active Member

Offline Offline

Posts: 18


View Profile
« 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.
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« 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??
Logged

miket
Active Member

Offline Offline

Posts: 18


View Profile
« 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?

Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« 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.
Logged

miket
Active Member

Offline Offline

Posts: 18


View Profile
« 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.
Logged
Pages: 1 2 3 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!