Log in

View Full Version : (binder) Need help with a macro to unbind keys.



jason01
12-31-2010, 12:25 AM
Alright this is going to sound a bit odd but I'll try and explain it as diliginty as possible. I downloaded the addon "BINDER" and it works great with the excpection of one thing. When I switch between profiles my shift modifier Macro's act as if my shift keys are still bound but there not.

In essence it's like this.

Resto Binds: My Shift-4, Shift-3, Shift-2 are all Binded (so I know my modifier Macros won't work since those shift keys are bound already)

Feral binds (Shift-4,Shift-3,Shift-2 are all unbounded due to my feral macros having "Shift-2/3/4 Modifier macros)

When I try and use my shift modifiers when I'm in my feral profile it wont work (It acts as if they Shift keys are still bounded, my modifier macros will not work. But the keys are not bounded, Shift-4 is Rebirth in Resto, when I try and click Rebirth in my FERAL profile, the icon doesn't light up at all. I even checked through all my bindings to make sure Shift-4 etc is not bound and they aren't)

There currently is one fix for me. When i click into my Feral profile, and it acts like Shift-2/3/4 are still bound, If I open my Key bindings section, pick a random key (lets say MOVE FORWARD) and bind Shift-2 To MOVE FORWARD then change it to shift 3 then shift 4 (so in essence it's clearing these keys from being bounded) Then I rebind it my original walk key (W in my case), my modifier macros work fine, But its a pain in the ass sitting there opening key bindings and having to bind and unbind 3 keys each time i duel spec.

I looked around your forums and found a macro that can BIND KEYS.

/script SetBinding("SHIFT-4","MOVEFORWARD")

I am looking for the opposite of this macro, I need a /script command that can UNBIND SHIFT-4. That way I can just click the two macros and "Bind and unbind" my shift keys fixing the bug from binder.

So if anyone can give me a macro like this /script SetBinding("SHIFT-4","MOVEFORWARD"), but to UNBIND the key (I'm not the greatest @ /script command)

It would be REALLY amazing and I'd really appreciate the help.

Thank you.

Jason

(PS If I somehow missed a thread with relevant information I apologize, I did try finding this in your database before searching)

shadewalker
12-31-2010, 01:10 PM
This may be a lame way to do it, but what if you set up a macro with 5 or 6 bind lines in it. It would first bind shift 1 thru shift 4 to the forward key then bind w and maybe the forward arrow key to forward again. This would in theory over write and unbind the previously bound keys.

Edited for typos...

Khatovar
12-31-2010, 01:47 PM
http://www.wowpedia.org/API_SetBinding

Looks like running the script without a command parameter is how to unbind


-- Remove all bindings from the right mouse button.
SetBinding("BUTTON2");
-- Restore the default binding for the right mouse button.
SetBinding("BUTTON2","TURNORACTION");

So /script SetBinding("SHIFT-4"); should unbind.

jason01
01-01-2011, 07:23 PM
So /script SetBinding("SHIFT-4"); should unbind.

Thank you SO MUCH, I REALLY appreciate this. It works perfect! Made my day :D