Move Mouse Position: Keep X, Y Position

At present, moving the mouse requires a new absolute or relative coordinate. In my use case, I only need to move one coordinate. I would like to be able to store an X or Y value so that I can return to this position.

Use case: Pro Tools has what is called "Dynamic Transport" that allows quick playback with just a click, but it requires clicking at a very specific location with little pixel height and is inconvenient for me. I would like to make a macro to move my cursor from my present "click" coordinates to the desired Y position, execute a left-click, and then return to the original Y position.