Close
Page 2 of 2 FirstFirst 1 2
Showing results 11 to 14 of 14

Thread: Key Binding

  1. #11

    Default

    You can use the various SetBinding() functions in a script to set keys to macros or commands.

    It has three versions SetBinding, SetBindingSpell and SetBindingMacro with each variation taking two arguments: the keyboard or mouse button you want to bind to and the action, spell or macro you want bound.

    Examples:

    [code:1]/run SetBinding("F1","MOVEFORWARD"); [/code:1]
    For a list of all the available actions open your Bindings-cache.wtf file in a text editor.

    [code:1]/run SetBindingMacro("ALT-F1","NameOfYourMacro");[/code:1]
    pretty self-explanatory. Bind any macro to a key. Does not take up a space on your default 120 buttons.

    [code:1]/run SetBindingSpell("CTL-F1","SpellName");[/code:1]
    Let's you set any spell in your spell book to to a key. You do not need to include the rank(although you can for things like rank 1 Arcane Explosion or Moonfire) and it will uprank as you level and downrank healing spells on lowbies correctly.

    You need to run the following after you use SetBinding or your changes will be lost.

    [code:1]/run SaveBindings(2)[/code:1]

    The argument is 1 if you want to save these changes to your account-wide keybinding set or 2 if you want to save it to your character specific keybinding set.

    Full example:

    [code:1]/run SetBindingMacro("F1","MyTotemMacro");
    /run SaveBindings(2);[/code:1]

    This is the basis for how all the mods that give you hidden keybinds like Clique, Bindpad and so on work. If you are going to be doing a ton of modifying using one of those mods is easiest. For a quick bind here and there you can use the scripts above.

  2. #12

    Default

    Quote Originally Posted by junx
    You can use the various SetBinding() functions in a script to set keys to macros or commands.

    It has three versions SetBinding, SetBindingSpell and SetBindingMacro with each variation taking two arguments: the keyboard or mouse button you want to bind to and the action, spell or macro you want bound.

    Examples:

    [code:1]/run SetBinding("F1","MOVEFORWARD"); [/code:1]
    For a list of all the available actions open your Bindings-cache.wtf file in a text editor.

    [code:1]/run SetBindingMacro("ALT-F1","NameOfYourMacro");[/code:1]
    pretty self-explanatory. Bind any macro to a key. Does not take up a space on your default 120 buttons.

    [code:1]/run SetBindingSpell("CTL-F1","SpellName");[/code:1]
    Let's you set any spell in your spell book to to a key. You do not need to include the rank(although you can for things like rank 1 Arcane Explosion or Moonfire) and it will uprank as you level and downrank healing spells on lowbies correctly.

    You need to run the following after you use SetBinding or your changes will be lost.

    [code:1]/run SaveBindings(2)[/code:1]

    The argument is 1 if you want to save these changes to your account-wide keybinding set or 2 if you want to save it to your character specific keybinding set.

    Full example:

    [code:1]/run SetBindingMacro("F1","MyTotemMacro");
    /run SaveBindings(2);[/code:1]

    This is the basis for how all the mods that give you hidden keybinds like Clique, Bindpad and so on work. If you are going to be doing a ton of modifying using one of those mods is easiest. For a quick bind here and there you can use the scripts above.
    wow awsome post! That is most helpful for something ive been doing, will save me a lot of time rather than using the interface.

  3. #13

    Default

    Thank you for the tips on bartender 3 and the detail explanation on key bindings.

    Appreciated all your help I have receive in this post.

  4. #14

    Default

    Quote Originally Posted by junx
    You can use the various SetBinding() functions in a script to set keys to macros or commands.

    It has three versions SetBinding, SetBindingSpell and SetBindingMacro with each variation taking two arguments: the keyboard or mouse button you want to bind to and the action, spell or macro you want bound.
    Nice! I stand corrected ops:

Similar Threads

  1. Binding Mouse Clicks to your Keyboard
    By Bigfish in forum General WoW Discussion
    Replies: 34
    Last Post: 03-17-2010, 11:57 PM
  2. Binding Key/Button to Spellbook or Macro
    By Falkor in forum Macros and Addons
    Replies: 4
    Last Post: 02-17-2009, 10:34 AM
  3. Binding trouble with X-Keys
    By junx in forum Hardware Tools
    Replies: 13
    Last Post: 01-07-2009, 03:04 PM
  4. key binding
    By Hancock in forum New Multi-Boxers & Support
    Replies: 2
    Last Post: 07-13-2008, 10:13 PM
  5. Binding Movement Keys
    By Silly Gooooose in forum Macros and Addons
    Replies: 1
    Last Post: 04-17-2008, 06:05 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •