Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-26-08, 04:25 PM   #1
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 43
Unbind all keys

Well i dont know how usefull it will be to u but for me it was like oasis =P
I was searching ****loads of foruns to find out how to unbind all keys in wow at once. When i failed to find the way to do it i made my own function. Since i really havent found anything usefull related to this matter im posting my function so u can use it if u need it =P

Code:
--Unbindall
function unbindall()
	LoadBindings(0)
	local a = GetNumBindings()
	for i = 1, a do
			local b, c = select(2, GetBinding(i)), select(3, GetBinding(i))
			SetBinding(tostring(b))
			SetBinding(tostring(c))
	end

	SetBinding("/", "OPENCHATSLASH")
	SetBinding(".", "OPENCHATSLASH")
	print("Unbinding done! U can now rebind ur keys with /rb command")
end
SlashCmdList["UNBINDALL"] = function() unbindall() end
SLASH_UNBINDALL1 = '/unbindall'

Last edited by Balkeep : 12-26-08 at 04:39 PM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » Released AddOns » Unbind all keys


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