Lore archive · Warcraft Wiki, 2023 dump
API RunBinding
Last wiki revision 2022-07-21
Executes a key binding. RunBinding(command[, up])
- command: - Name of the key binding to be executed
- up: - Optional, if "up", the binding is run as if the key was released.
The call below toggles the display of the FPS counter, as if CTRL+R was pressed. RunBinding("TOGGLEFPS");
The "command" argument must match one of the (usually capitalized) binding names in a Bindings.xml file. This can be a name that appears in the Blizzard FrameXML Bindings.xml, or one that is specified in an AddOn.
RunBinding cannot be used to call a Protected Function from insecure execution paths.
By default, the key binding is executed as if the key was pressed down, in other words the keystate variable will have value "down" during the binding's execution. By specifying the optional second argument (the actual string "up"), the binding is instead executed as if the key was released, in other words the keystate variable will have value "up" during the binding's execution.
Source
https://warcraft.wiki.gg/wiki/API_RunBinding · 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.