Camera zoom in/out via macro?

I’d like to use my mouse wheel as a /stopcasting macro, but I don’t want to lose the ability to zoom in/out my camera. Is it possible to zoom in/out your camera via a macro?

1 Like

You bind any key or key/modifier combination to your camera zoom in/out functions.

I’m not sure I follow. If I have mouse wheel bound to camera zoom in / out and then I assign the mouse wheel to a macro, won’t it be removed from camera zoom in / out?

You could, for example, bind Zoom IN/Out to ALT/Mousewheel Up/Down and unmodified Mousewheel Up/Down to something else.

Or you could set Zoom In/Out to, say the “I” and “O” keys.

Or pretty much anything.

Zoom in/out is just another “thing” to be bound. What you bind it to is arbitrary.

Oh yes, I know that, unfortunately I play an arcane mage and I am pretty much out of binds, I was hoping I could combine through a macro the zoom in / out and stopcasting.

There’s no way to include zoom functions in a combat macro that I’m aware of.

Absolutely true, but you can bind, say, “Alt Mousewheel Up” to zoom in and use just “Mousewheel Up” for something else, unless I’m just confused on how that works.

You could use CameraZoomIn() and CameraZoomOut() in a macro. However, I don’t know, it would do the trick while in combat.

/run if not IsControlKeyDown()then CameraZoomOut(50)end
/run if IsControlKeyDown()then CameraZoomIn(10)end
3 Likes