Due to failing eyesight I have a macro to move the cursor to top center and zoom the Safari window. If the Safari window is already expanded I would like the same macro to only move the cursor to the top center of the window. Currently to accomplish this I return the window to non-zoomed then move the cursor to top center and zoom the Safari window. Not obvious here is that the window gets scrolled (desired feature) to the top in this process. The current macro takes too long (seconds) to do its thing.
I'm afraid it's not clear what you mean by "zoom" here, since that's the term used both to make a window full-screen and to increase magnification. I strongly suggest sharing the macro in question, so that we know exactly what you're trying to do and how you're currently going about it, and following the guidelines in this post: