/run if IsMouselooking() then MouselookStop() SetBinding("BUTTON1","CAMERAORSELECTORMOVE") SetBinding("BUTTON2","TURNORACTION") else MouselookStart() SetBindingMacro("BUTTON1","MB1") SetBinding("BUTTON2","INTERACTTARGET") end
I've been wondering for quite some time if there is a way to toggle RMB so you don't actually have to hold it all the time (destroyed several mice throughout my WoW career), but never actually pursued the idea.
Well, tonight I got bored and decided to Google for a bit and the macro above is the result.
You bind this macro to w/e button you choose and pressing it will turn your LMB and RMB buttons into two extra macroable keybinds and at the same time switch your camera to mouse turning without having to press and hold anything.
The first part of the macro (before else Mouselook...) is there for you to be able to revert the "toggle" back and you shouldn't change it. However, the second part is completely up to you. You can bind pretty much anything to LMB and RMB. In the example above I created a macro called "MB1" and any time I press LMB this macro will go off (that's why there's SetBindingMacro command). When I press RMB the Interact With Target command is called.
Also, for anyone wondering, it IS usable in combat.
And of course, I know this might be old news for some people, but I decided to share it anyway, in case somebody who doesn't know the trick finds it useful.