mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
RunMacroText copies the text into the body of a zeroed stack macro entry and hands it to the engine's macro runner, as 4.3.4 does with a stack MACRONODE. The runner reads only the body, so each line goes the engine's way: EXECUTE_CHAT_LINE to MacroEditBox, with # lines skipped and /stopmacro honored. Macro::RunBody keeps the running entry and button per run, saved and restored around nested runs. GetRunningMacro maps the entry's ID to its index; GetRunningMacroButton returns the button. [button] now matches the running macro's button as well as the clicked one. Macro::Execute drops its Lua ChatEdit_ParseText path and the addon RunMacro preference. The secure button's macro verb and the MACRO binding run through the engine runner with the clicked button and "LeftButton".