You should use the relevant CVars instead of changing global variables. Changing the globals will cause taint, and will probably not persist between sessions.
- bottomLeftActionBar
- bottomRightActionBar
- rightActionBar
- rightTwoActionBar
In a macro:
Code:
/console bottomLeftActionBar 0
In a script:
Code:
SetCVar("bottomLeftActionBar", 0)
Use 0 to turn the bar off, or 1 to turn it on.