Download
(3 Kb)
Download
Updated: 10-12-12 02:09 AM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:10-12-12 02:09 AM
Created:02-02-10 09:42 AM
Downloads:14,076
Favorites:102
MD5:
Categories:Action Bar Mods, Miscellaneous
ncHoverBind  Popular! (More than 5000 hits)
Version: 1.3.0
by: nightcracker, Coote
Now maintained by TMcMahon51. See thread here.


ncHoverBind is a simple addon that does one thing: binding buttons on mouseover. You can mouse over actionbuttons, spells in the spellbook and macro's in the macro pane and bind them while hovering. You can bind keys, mousebuttons 4 and 5 and the scrollwheel with this addon. If you made a mistake in binding, you can just press "Discard" and your old bindings are loaded. Real simple!


Usage:
Download and install. To start use either /hb or /hoverbind. Hover over buttons, spells or macro's and press a key, scroll with the mouse or press mousebutton 4 or 5. After you've bound your spell/items/macro's press "Save bindings" and your done!
If you use HealBot, use /hvb instead.

Upcoming features:
- Items
Suggest features!

Credits:
FatalEntity
1.3.0
--
MoP compatibility.
.TOC bump

1.2.2
--
Added check to avoid interference with HealBot.

1.2.1
--
.TOC bump
Should be mostly error free now.

1.2.01
--
Reuploaded as .zip. Sorry to any MMO-Minion users, was unaware it couldn't handle .rar files.

1.2
--
Fixed Spellbook binding.
Added in Networm's fixes.

1.1
--
Fixed the keybinding mechanic so it correctly binds to the "hidden" keybinds. Also works on pet and shapeshift buttons now.
Archived Files (6)
File Name
Version
Size
Author
Date
1.2.2
3kB
nightcracker
08-15-12 03:23 PM
1.2.1
3kB
nightcracker
07-30-12 05:00 AM
1.2.01
4kB
nightcracker
11-17-10 11:48 AM
1.2
4kB
nightcracker
11-14-10 12:30 PM
1.1
3kB
nightcracker
02-11-10 11:02 PM
1.0
2kB
nightcracker
02-02-10 09:42 AM


Post A Reply Comment Options
Old 11-13-10, 08:53 PM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
SpellBook Spells

If you want to Fix it for SpellBook Spells, on line 52 change to:

lua Code:
  1. self.button.id = SpellBook_GetSpellBookSlot(self.button)
  2. self.button.name = GetSpellBookItemName(self.button.id, SpellBookFrame.bookType)
__________________
My oUF Layout: oUF Lumen
neverg is offline Report comment to moderator  
Reply With Quote
Old 11-06-10, 01:53 PM  
networm
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 2
Code:
bind:SetScript("OnKeyUp", function(self, key) self:Listener(key) end)
bind:SetScript("OnMouseUp", function(self, key) self:Listener(key) end)
Code:
-- chaged the following two Script from OnKeyUp to OnKeyDown to fix can't bind a combine key such as SHFT+T, ALT+SHIFT+Q
bind:SetScript("OnKeyDown", function(self, key) self:Listener(key) end)
bind:SetScript("OnMouseDown", function(self, key) self:Listener(key) end)
Code:
-- fix can't bind anykey when a macro isn't available
-- must comment the line in OnHide function
-- such as you are Fury Warrior and you have a macro
-- #showtooltip /cast BladeStorm
-- you can't bind any key to this button because OnHide is not called forever
bind.button.bindings = {GetBindingKey(bind.button.bindstring)}
GameTooltip:SetScript("OnHide", function(self)
self:SetOwner(bind, "ANCHOR_NONE")
to fix this just move "bind.button.bindings = {GetBindingKey(bind.button.bindstring)}" ahead from SetScript("OnHide") because a macro which can't use didn't have any tooltip so it can't trigger OnHide

Code:
		function bind:Listener(key)
			-- fix bind the SCREENSHOT key, now press SCREENSHOT key will take a screen shot
			-- GetBindingFromClick
			if GetBindingByKey(key) == "SCREENSHOT" then
				RunBinding("SCREENSHOT");
				return
			end

			-- change behavior to bind only one key for one button
			if #self.button.bindings > 0 then
				for i = 1, #self.button.bindings do
					SetBinding(self.button.bindings[i])
				end
				self:Update(self.button, self.spellmacro)
				if self.spellmacro~="MACRO" then GameTooltip:Hide() end
			end

Code:
	if not bind.enabled then
		bind:Activate()
		StaticPopup_Show("KEYBIND_MODE")
		-- fix issue that enter /hb it doesn't display bind tooltip when mouse is over action button
		local stance = ShapeshiftButton1:GetScript("OnClick")
		local pet = PetActionButton1:GetScript("OnClick")
		local button = SecureActionButton_OnClick
		local focus = GetMouseFocus()
		if focus.IsProtected and focus.GetObjectType and focus.GetScript and focus:GetObjectType()=="CheckButton" and focus:IsProtected() then
			local script = focus:GetScript("OnClick")
			if script==button then
				bind:Update(focus)
			elseif script==stance then
				bind:Update(focus, "STANCE")
			elseif script==pet then
				bind:Update(focus, "PET")
			end
		end
	end
networm is offline Report comment to moderator  
Reply With Quote
Old 10-23-10, 10:00 PM  
Coote
A Scalebane Royal Guard
 
Coote's Avatar
AddOn Author - Click to view AddOns

Forum posts: 415
File comments: 63
Uploads: 8
Originally posted by Kogasu
Existing binds do work, however binding from the "new" spellbook does not.
I'll look into this sometime tomorrow. My main focus is getting ncSpellAlert back to working condition, since a lot of spell IDs have been changed.
__________________

"This is the fifteen-thousandth four hundredth and ninety-eighth occurence".
Coote is offline Report comment to moderator  
Reply With Quote
Old 10-22-10, 08:56 PM  
Kogasu
A Kobold Labourer
 
Kogasu's Avatar

Forum posts: 0
File comments: 113
Uploads: 0
Existing binds do work, however binding from the "new" spellbook does not.

An update would be much appreciated
Kogasu is offline Report comment to moderator  
Reply With Quote
Old 10-19-10, 11:22 PM  
wings4tw
A Defias Bandit

Forum posts: 2
File comments: 13
Uploads: 0
Still works in 4.01 !!
Long live Hoverbind!
wings4tw is offline Report comment to moderator  
Reply With Quote
Old 07-22-10, 12:36 AM  
Slaxi81
A Murloc Raider
 
Slaxi81's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 178
Uploads: 1
Great,

thank you for this!


Have a nice day

Slaxi
__________________
Gnampf!
Slaxi81 is offline Report comment to moderator  
Reply With Quote
Old 06-23-10, 11:29 AM  
haylie
A Scalebane Royal Guard
 
haylie's Avatar

Forum posts: 417
File comments: 15
Uploads: 1
Heya nightcracker, I'm going to be using your mod for my bindings and I have a question. When I bind a spell from my spellbook (let's say, Arcane Shot Rank 1), once I gain a new rank of the spell (like rank 2) will the binding still be attached to Rank 1 or switch over automatically to Rank 2? Cause it would be a bit annoying to rebind each spell every time I gain a new rank.
__________________
haylie is offline Report comment to moderator  
Reply With Quote
Old 03-13-10, 01:07 AM  
Jabar
Premium Member
 
Jabar's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 1
Very good job nightcracker, such a useful yet simple addon !

@ Blizzart
How to do it yourself :

1. Line 187 : Edit this line to
Code:
-- or key == "MiddleButton"
2. Line 190 : Add this
Code:
if key == "MiddleButton" then key = "BUTTON3" end
You can now bind your Middle Button !
Jabar is offline Report comment to moderator  
Reply With Quote
Old 03-02-10, 02:28 PM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 110
Uploads: 9
n1, I have search a new addon like this.

But one thing is there still, the"middle mouse button" doesnt work to set.
It will be nice if you can set this button for setable
blizzart is offline Report comment to moderator  
Reply With Quote
Old 02-14-10, 08:16 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 430
Uploads: 31
Re: Re: Re: macro binding bug

Originally posted by masterbeef
i did test this with all other addons disabled even removing all addon saved variables.


just tried that and it does work if i click the user specific tab again while binding mode is activated.
Wait a second, this explained the bug better, you used /hb while you already had the local bindings open. That indeed causes a bug, I'll try to fix it.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Old 02-14-10, 07:48 AM  
masterbeef
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
Re: Re: macro binding bug

i did test this with all other addons disabled even removing all addon saved variables.

try to make sure that you clicked on the user specific tab in the macro frame before binding since I hook the clicking on that button.
just tried that and it does work if i click the user specific tab again while binding mode is activated.
masterbeef is offline Report comment to moderator  
Reply With Quote
Old 02-14-10, 01:42 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 430
Uploads: 31
Re: macro binding bug

Originally posted by masterbeef
first just wanna say thanks for making this and your other addon's i really love lightweight efficiant software. the problem appeared when i upgraded from 1.0 to 1.1. when trying to bind a user specific macro hb would instead bind to a macro from the general macro tab that shared the same block placement as the user macro. ie i binding a macro in the 2nd row 3rd column in user specific would instead bind to whatever happened to be in the 2nd row 3rd column of general. i was able to work around this by scrolling my general macro tab down so that no macro's were shown. hope my explanation makes sense XD ty again
Hmm, I thought I prevented this. Let me try to reproduce.

EDIT: Can't reproduce this. Do you use any other addons? And also, try to make sure that you clicked on the user specific tab in the macro frame before binding since I hook the clicking on that button.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
Last edited by nightcracker : 02-14-10 at 01:44 AM.
nightcracker is offline Report comment to moderator  
Reply With Quote
Old 02-13-10, 09:08 PM  
masterbeef
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
macro binding bug

first just wanna say thanks for making this and your other addon's i really love lightweight efficiant software. the problem appeared when i upgraded from 1.0 to 1.1. when trying to bind a user specific macro hb would instead bind to a macro from the general macro tab that shared the same block placement as the user macro. ie i binding a macro in the 2nd row 3rd column in user specific would instead bind to whatever happened to be in the 2nd row 3rd column of general. i was able to work around this by scrolling my general macro tab down so that no macro's were shown. hope my explanation makes sense XD ty again
masterbeef is offline Report comment to moderator  
Reply With Quote
Old 02-07-10, 11:02 PM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 430
Uploads: 31
Originally posted by ichik
Latest build of MacroBank fixed the error.
Great to hear that!
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Old 02-07-10, 10:50 PM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 264
Uploads: 5
Latest build of MacroBank fixed the error.
ichik is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: