WoW:API GetBindingAction: Difference between revisions
Jump to navigation
Jump to search
GetBindingAction
No edit summary |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''GetBindingAction'''</center> | <center>'''GetBindingAction'''</center> | ||
Line 24: | Line 25: | ||
if (action) then DEFAULT_CHAT_FRAME:AddMessage(action,1.0,1.0,1.0); end | if (action) then DEFAULT_CHAT_FRAME:AddMessage(action,1.0,1.0,1.0); end | ||
--By default this will return "MOVEFORWARD" | --By default this will return "MOVEFORWARD" | ||
Revision as of 18:08, 6 January 2007
Returns the name of the action performed by the specified key.
- Arguments
- (String key)
- key
- The name of the key (eg. BUTTON1, 1, CTRL-G)
- Returns
- action
- action
- The name of the action performed by the key. If no action is bound to the key, an empty string is returned.
- Example
action = GetBindingAction("UP"); DEFAULT_CHAT_FRAME:AddMessage("The up arrow is currently bound to:",1.0,1.0,1.0); if (action) then DEFAULT_CHAT_FRAME:AddMessage(action,1.0,1.0,1.0); end --By default this will return "MOVEFORWARD"