Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API SetOverrideBinding

Last wiki revision 2023-08-24

Sets an override key binding. SetOverrideBinding(owner, isPriority, key, command)

  • owner:Frame - The frame this binding "belongs" to; this can later be used to clear all override bindings belonging to a particular frame.
  • isPriority: - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings.
  • key: - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5"
  • command:String/nil - Any name attribute value of a Bindings.xml-defined binding, or an action command string; nil to remove an override binding. For example:
  • "SITORSTAND" : a Bindings.xml-defined binding to toggle between sitting and standing
  • "CLICK PlayerFrame:LeftButton" : Fire a left-click on the PlayerFrame.
  • "SPELL Bloodrage" : Cast Bloodrage.
  • "ITEM Hearthstone" : Use
  • "MACRO Foo" : Run a macro called "Foo"
  • "MACRO 1" : Run a macro with index 1.
  • mode: - 1 if the binding should be saved to the currently loaded binding set (default), or 2 if to the alternative.
  • Override bindings take precedence over the normal bindings. Priority override bindings take precedence over non-priority override bindings.
  • Override bindings are never saved, and will be wiped by an interface reload.

Source

https://warcraft.wiki.gg/wiki/API_SetOverrideBinding · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.