Macro to change video setting?

Hi,

Is it possible for a macro to change graphic setting on the fly?
Like setting the Graphic Quality slide to “1” or “5” or “10” with a single key press?

Graphic settings are stored in the CVars. You can change them in macros with the C_CVar.SetCVar function.
For example

/script C_CVar.SetCVar("graphicsQuality", 1);

While the above graphicsQuality CVar does correspond to the slide if you change it in the settings, it doesn’t update for me if I change it via a macro.

But other graphical settings work, though according to various wikis you might have to call RestartGx() afterwards. For example to change texture resolution:

/script if C_CVar.SetCVar("graphicsTextureResolution", 3) then RestartGx(); end

I suggest to check out https://wow.gamepedia.com/Console_variables/Complete_list or the addon AdvancedInterfaceOptions to see which graphic settings you might want to change.

2 Likes

Ah thanks a lot!

This RestartGx() function may help me doing what I want ^^

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.