WoW API: SetOverrideBindingClick

Revision as of 11:08, 28 September 2008 by WoWWiki>Deemer (Updated with new information)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < SetOverrideBindingClick

Sets an override binding that acts like a mouse click on a button.


Arguments
(table owner, boolean isPriority, string key, string buttonName [, string mouseClick])
owner
(table) The frame responsible for setting the override.
isPriority
(boolean) Indicates that this is a priority override binding.
key
(string) The key to bind to the button (e.g. "CTRL-2").
buttonName
(string) The name of the button to which the key will be bound or nil to remove the override binding.
mouseClick
(string) The mouse button sent to the button's OnClick handler (e.g. "LeftButton").

Example
-- Set CTRL-X key to act like a right mouse click on the specified button
local button = SomeButton;
SetOverrideBindingClick(button, false, "CTRL-X", button:GetName(), "RightButton");