API:SetBindingKey

__NOTOC__
Set the hotkeys to execute a command.
SetBindingKey ("command"[, "hotkey1"[, "hotkey2"]])
== Parameters ==
=== Arguments ===
:;command
::String - Command Name of the action to execute when hotkey is pressed, such as MOVEFORWARD or ASSISTTARGET. An unrecognized Command Name will not get bound.
:;hotkey1
::String - Key Name of the key to bind to the command. An unrecognized Key Name will not get bound.
:;hotkey2
::String - Key Name of the key to bind to the command. An unrecognized Key Name will not get bound.
=== Returns ===
:nil
== Example ==
-- The Command Name "REPLY" is set to "CTRL+R",
-- the preexisting hotkey bindings are overwritten,
-- and any previous Command Name binding to Key Name "CTRL+R" is eliminated
SetBindingKey("REPLY", "CTRL+R");
SaveBindingKey()
== Notes ==
* The key bindings are not saved to "%UserProfie%\My Documents\Runes of Magic\bindings.txt" until function SaveBindingKey is executed
* SetBindingKey is run upon hitting the OK button on the KeyDefineFrame
* Duplicate hotkey name bindings are eliminated by this function.
== Related Functions ==
* DefaultBindingKey
* GetBindings
* GetBindingKey
* GetNumBindings
* SaveBindingKey
* UpdateBindingsListView
* DefaultBindingKey
Category:Functions