Hello Guest it is April 18, 2024, 09:49:56 AM

Author Topic: How to access "stats" variables  (Read 2648 times)

0 Members and 1 Guest are viewing this topic.

Re: How to access "stats" variables
« Reply #10 on: January 03, 2023, 06:21:32 PM »
Well, I guess he really meant its not in there :-)

thanks for checking and sharing the macro.

I guess I will go back to my original plan of just reading in the machine.ini values and storing them to variables.

One question, do you happen to know how late in the shutdown the unload script runs?  For example, if I save variables to the machine.ini in the unload script, is that likely to before or after Mach4's internal save functions run?

jim
Re: How to access "stats" variables
« Reply #11 on: January 03, 2023, 06:40:52 PM »
Hi,
I can only guess. In the ScreenUnload script there is just the one conditional with:

Code: [Select]
if (Tframe ~= nil) then

Tframe:Close()
    Tframe:Destroy()
end

being the last code. My guess is that if you appended your own code it would run AFTER the Mach4 save, which, again only my guess, is triggered by Tframe:Close().
If your code were pre-pended then I would expect it to run prior to the Mach4 save.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'