Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetBindingKey
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} <center>'''GetBindingKey'''</center> Returns all keys currently bound to the command specified by ''command''. This function is almost identical to [[API GetBinding|GetBinding(index)]] except it takes the command name as an argument instead of the index and doesn't return the command name along with the key bindings. ---- ;''Arguments'' :(String command) :;command : The name of the command to get key bindings for (e.g. MOVEFORWARD, TOGGLEFRIENDSTAB) ---- ;''Returns'' :key1, key2, ..., keyN :;key1-N : (string) The string representation of the key bound to this command (e.g. W, UP). Even though the default key binding GUI window only displays 2 possible keys bound to each command, it appears there is no limit to the number of keys that can be bound to a single command. This function will return as many keys as have been set with [[API SetBinding|SetBinding("key"{,"command"})]]. If no keys are bound to the action, it will return nil. ---- ;''Example'' key1, key2 = GetBindingKey("MOVEFORWARD"); DEFAULT_CHAT_FRAME:AddMessage("Move Forward has the following keys bound:",1.0,1.0,1.0); if (key1) then DEFAULT_CHAT_FRAME:AddMessage(key1,1.0,1.0,1.0); end if (key2) then DEFAULT_CHAT_FRAME:AddMessage(key2,1.0,1.0,1.0); end
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)