"Some useful information I found while scanning the wow-europe forums that I thought people might be interested in since I now use this and have no interface bars on screen
The following macros, SetBindingSpell, can bind a key or mouse button directly to a spell in the spellbook, thus not requiring the use of an actionbar button for that spell; or, SetBindingMacro, can bind a key or button to another macro. Replace KEYORBUTTON for whatever key or mouse button preferred; replace "SpellName" with the name of the spell in the spellbook, or replace "MacroName" with the name of the macro. (Must be in quotes.)
Notes: Can use a key or button press in the command. (See examples below of valid keys or buttons.) A single key can only be bound to one command. Binding a key to a command that is already bound will result in un-binding the key from the previous command. Cannot set bindings in combat. Also make sure to check the interface keybindings for any default settings that may conflict with custom settings.
For Spells:
For Macros:Code:/script SetBindingSpell("KEYORBUTTON","SpellName") /script SaveBindings(GetCurrentBindingSet()) Example: /script SetBindingSpell("Alt-Q","Renew(Rank 1)") /script SaveBindings(GetCurrentBindingSet())
Unbind Key or ButtonCode:/script SetBindingMacro("KEYORBUTTON","MacroName") /script SaveBindings(GetCurrentBindingSet()) Example: /script SetBindingMacro("BUTTON4","HealAllMacro") /script SaveBindings(GetCurrentBindingSet())
To unbind the specific key or button, remove the applicable "SpellName" or "MacroName" or replace with nil.
Advanced SettingsCode:/script SetBindingSpell("KEYORBUTTON") /script SaveBindings(GetCurrentBindingSet()) /script SetBindingMacro("KEYORBUTTON") /script SaveBindings(GetCurrentBindingSet())
Note, this is complicated and can accidentally change the bind scope. The following change saves the bindings per character: replace the line:
The 1 is account bindings, 2 is character bindings.Code:----- /script SaveBindings(GetCurrentBindingSet()) to: /script SaveBindings(2) -----
KEYS / BUTTONS
Keys (Keyboard): (Must be a valid key)
Examples: "W" or "CTRL-F" or "ALT-A", "CTRL-NUMPAD3", "ALT-Left Arrow" etc
Numpad 0 is "NUMPAD0"
----
Buttons (Mouse) : (Must be a valid button)
Examples: "BUTTON4" or "ALT-BUTTON3", etc
MOUSE BUTTON as Option or Modifier
The option [button:##] or [btn:##] works similarly to the modifier button, BUTTON#. Normally a left-click button performs whatever action is in that spell or macro. However if the button option is set, the behavior of a particular macro can be changed. The default button is 1, therefore when activating a macro via a keybinding, it treats it like a Left Mouse button click. The numbered buttons are:
-----
BUTTON1 = [button:1] = [btn:1] = LeftButton (Note, hardcoded, not bindable w/spell)
BUTTON2 = [button:2] = [btn:2] = RightButton (Note, hardcoded, not bindable w/spell)
BUTTON3 = [button:3] = [btn:3] = MiddleButton
BUTTON4 = [button:4] = [btn:4] = Button4 (for those with extended mouse functions)
BUTTON5 = [button:5] = [btn:5] = Button5 (for those with extended mouse functions)
Connect With Us