10/12/2023 0 Comments As3 setting defaults for text fieldsThe exec.Readkey function returns the stored STRING from the current profile. The easyest way to reload values on startup is to use one of the following lines in the M99998.txt macro:Ĭode: Select all AS3.Setfield(Convert.ToDouble(exec.Readkey("UserTextfields", "20002", "0.0")), 20002) // Set numeric fieldĪS3.Setfieldtext(exec.Readkey("UserTextfields", "20003", "default text"), 20003) // Set text field I think using the B and C axes to store information is not the best practise. Or, is there an automatic/better way to do this? just to get the field updated every time UCCNC is started. repeated for each axis, or is that button doing something else also? Rewriting the Zero All is the easiest approach, much easier than having to open the file and look for the right user field label, reading the value and so on. I could rewrite the macro for the "Zero all", but the question is, does that button do anything more than: This is fine for me, I can use any labels, but the problem is that the "Zero All" button would clear the values. If I don't change the label numbers and just keep 230 and 231 then this is not an issue, the values are saved and when UCCNC is started the next time the saved values are placed in the fields. When I close UCCNC, I can see that the values are saved in the profile, but when I start UCCNC the fields display zero, not the values which are saved in the profile file. This works fine, I can use the fields, enter values and the "Zero All" button does not change them back to zero. I change the label to 2003 from 230 and 231. This is what I am trying to do: I want to use the B and C axis fields for something else and also as global values to be passed on to a lot of other macros. It is grate that the user fields and checkboxes ID>= 20000 are saved in the profile, but is there a good example of how to use the saved value? I mean, do I have to open the file, find the right label, read the value and write it back into the field every time after start, or is there an automatic way? Just installed the latest release and I like some of the new features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |