Hello Guest it is January 02, 2026, 10:36:36 AM

Author Topic: Registers from a Macro  (Read 71 times)

0 Members and 1 Guest are viewing this topic.

Registers from a Macro
« on: December 31, 2025, 12:47:52 PM »
local inst = mc.mcGetInstance()
local hreg, rc, ignoreDustBoot
hreg, rc = mc.mcRegGetHandle(inst, "iRegs0/nf/TRC/IgnoreDustBoot")
if (mc.mcInEditor() == 1) then
   mc.mcCntlSetLastError("crap")
end

This fails on Windows 10. One Windows 11, success. I've installed the latest VC++ package on windows 10 which fixed a machipc.dll error I was getting previously.
The register exists and has a value of 1. the rc code is 0, but hreg is 0 also. This should work. It's part of a larger script which has stored values for the dustboot location.

Colten.