Thread Tools Display Modes
10-09-10, 11:11 AM   #1
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
How to define a keybind?

Is there a way to define a keybind via lua. I am working on a bag addon and want to bind the open all bags to b. I would like to do it via lua so that the user does not have to manually change their keybinds.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-09-10, 11:57 AM   #2
diablo0813
A Deviate Faerie Dragon
Join Date: Apr 2008
Posts: 15
By default: Shift+B opens all bags.

And I think theres an option for setting just "B" to open all bags within the default keybinding interface.

Last edited by diablo0813 : 10-09-10 at 11:58 AM. Reason: Remembered something else!
  Reply With Quote
10-09-10, 12:32 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
http://wowprogramming.com/docs/api_categories#binding
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-09-10, 01:23 PM   #4
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Thank you Seerah.

Just a quick question though .
-- Bind B to Open All Bags.
SetBinding("b", "OPENALLBAGS")


^^^^^^^^
I really don't think OPENALLBAGS is a proper "Command" Anyone know what the proper command would be?
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-09-10, 01:35 PM   #5
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by nobgul View Post
Thank you Seerah.

Just a quick question though .
-- Bind B to Open All Bags.
SetBinding("b", "OPENALLBAGS")


^^^^^^^^
I really don't think OPENALLBAGS is a proper "Command" Anyone know what the proper command would be?
It is actually:
http://www.wowwiki.com/BindingID
  Reply With Quote
10-09-10, 01:52 PM   #6
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Cheers,

I guess my well guess was right. Thank you will try it out tonight see how it goes.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to define a keybind?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off