🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
These functions relate to[Key Bindings](https://wow.gamepedia.com/Key_Bindings "Key Bindings"). [C\_KeyBindings.GetCustomBindingType](https://wow.gamepedia.com/API_C_KeyBindings.GetCustomBindingType "API C KeyBindings.GetCustomBindingType")(bindingIndex) - Returns the type of a custom binding. [GetBinding](https://wow.gamepedia.com/API_GetBinding "API GetBinding")(index) - Get action and key bindings for that index. [GetBindingAction](https://wow.gamepedia.com/API_GetBindingAction "API GetBindingAction")("key"\[, checkOverride\]) - Get the action bound to that key. [GetBindingByKey](https://wow.gamepedia.com/API_GetBindingByKey "API GetBindingByKey")("action"\[, mode\]) [GetBindingKey](https://wow.gamepedia.com/API_GetBindingKey "API GetBindingKey")("command") - Get the key(s) bound to that action. [GetCurrentBindingSet](https://wow.gamepedia.com/API_GetCurrentBindingSet "API GetCurrentBindingSet")() - Queries if current set of key bindings is character or account specific. [GetNumBindings](https://wow.gamepedia.com/API_GetNumBindings "API GetNumBindings")() - Get total number key bindings and headers. [LoadBindings](https://wow.gamepedia.com/API_LoadBindings "API LoadBindings")(which) - Loads default, account or character specific key binding set into memory from disk. [RunBinding](https://wow.gamepedia.com/API_RunBinding "API RunBinding")("command"\[, "up"\]) - Executes the key binding named "command". [SaveBindings](https://wow.gamepedia.com/API_SaveBindings "API SaveBindings")(which) - Saves account or character specific key bindings from memory to disk. NOCOMBAT[SetBinding](https://wow.gamepedia.com/API_SetBinding "API SetBinding")("key"\[, "command"\[, mode\]\]) - Sets or unsets key bindings. (Can not be used in combat.) NOCOMBAT[SetBindingSpell](https://wow.gamepedia.com/API_SetBindingSpell "API SetBindingSpell")("key", "Spell Name") - Set a key binding directly to a spell, uses the same spell name syntax as /cast. NOCOMBAT[SetBindingClick](https://wow.gamepedia.com/API_SetBindingClick "API SetBindingClick")("key", "ButtonName" \[, "mouseButton"\]) - Set a key binding directly to a Button object. The click sends a mouse down when the key is pressed, and a mouse up when it is released. NOCOMBAT[SetBindingItem](https://wow.gamepedia.com/API_SetBindingItem "API SetBindingItem")("key", "itemname") NOCOMBAT[SetBindingMacro](https://wow.gamepedia.com/API_SetBindingMacro "API SetBindingMacro")("key", "macroname" or macroId) NOCOMBAT[SetOverrideBinding](https://wow.gamepedia.com/API_SetOverrideBinding "API SetOverrideBinding")(owner, isPriority, "key"\[, "command"\]) - Set (or clear) an override key binding. NOCOMBAT[SetOverrideBindingSpell](https://wow.gamepedia.com/API_SetOverrideBindingSpell "API SetOverrideBindingSpell")(owner, isPriority, "key", "spellname") NOCOMBAT[SetOverrideBindingClick](https://wow.gamepedia.com/API_SetOverrideBindingClick "API SetOverrideBindingClick")(owner, isPriority, "key", "buttonName" \[, "mouseClick"\]) - Sets an override binding that acts like a mouse click on a button. NOCOMBAT[SetOverrideBindingItem](https://wow.gamepedia.com/API_SetOverrideBindingItem "API SetOverrideBindingItem")(owner, isPriority, "key", "itemname") NOCOMBAT[SetOverrideBindingMacro](https://wow.gamepedia.com/API_SetOverrideBindingMacro "API SetOverrideBindingMacro")(owner, isPriority, "key", "macroname" or macroId) NOCOMBAT[ClearOverrideBindings](https://wow.gamepedia.com/API_ClearOverrideBindings "API ClearOverrideBindings")(owner) - Reset all overrides belonging to an owner. [SetMouselookOverrideBinding](https://wow.gamepedia.com/index.php?title=API_SetMouselookOverrideBinding&action=edit&redlink=1 "API SetMouselookOverrideBinding (page does not exist)")("key" \[, "command"\]) UI[GetBindingText](https://wow.gamepedia.com/API_GetBindingText "API GetBindingText")("key", "prefix", returnAbbr) - Gets the string value for the key.