How do i get this macro to go when I’m pressing ctrl?
/console scriptErrors 1
I don’t know LUA well enough to even guess but a possible work-around is to add it to the end of a macro with a stopmacro command such as:
/stopmacro [nomod:ctrl]
/console scriptErrors 1
Could just set it up as a toggle
/run local k,v = "scriptErrors" v = C_CVar.GetCVar(k) C_CVar.SetCVar(k, 1 - v) print("Errors " .. (v == "1" and "Disabled" or "Enabled"))
Ok, does anyone know how to add ctrl modifier to
/console scriptErrors 1
and just that?
2 posts above yours.
No, I figured it out on my own. This seems to be doing what I wanted.
/run if IsControlKeyDown() then SetCVar("scriptErrors", "1") else end;
1 Like