I'm still learning to get on with lua...
I, was able to make an dro to put in a value.
But when i close the program i lose the Number
Here is what i did load into the screen load script:
--local inst = mc.mcGetInstance()
local droVal = mc.mcProfileGetInt(inst, "Preferences", "ToolSetHeigth", 0)
scr.SetProperty("droToolset", "Value",tostring(droVal))
And here is what i put in the unload script:
--Save dro Toolsetter Height to .ini
local droVal = scr.GetProperty('droToolset','Value')
mc.mcProfileWriteString(inst, "ToolSetHeigth","MachineBedOffset", droVal)
If i look into the ini file i can't seem to find back the info that schould have been written...
If i can load unload the dor i can use it to get data in an lua module i use.
Adam