WoW:API GetBinding: Difference between revisions

m
Move page script moved page API GetBinding to WoW:API GetBinding without leaving a redirect
(upgraded deprecated template)
m (Move page script moved page API GetBinding to WoW:API GetBinding without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
<center>'''GetBinding'''</center>
Returns the command name and all keys currently bound to the command specified by ''index''.  This would generally be used in conjunction with [[API GetNumBindings|GetNumBindings()]] to loop through and set/get all of the key bindings available.
Returns the command name and all keys currently bound to the command specified by ''index''.  This would generally be used in conjunction with [[API GetNumBindings|GetNumBindings()]] to loop through and set/get all of the key bindings available.


Line 25: Line 23:
  if (key1) then DEFAULT_CHAT_FRAME:AddMessage(key1,1.0,1.0,1.0); end
  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
  if (key2) then DEFAULT_CHAT_FRAME:AddMessage(key2,1.0,1.0,1.0); end
----
;''Notes''
It may also be helpful to use the [[API_select | select]] function to return a table of all the values.  See the [[API_select | select]] page example of the Catenation function.
Anonymous user