How to set x-coordinate to be screen center?


I currently have this action in a macro:

Move Mouse to (1277,105) from the Top Left Corner of the Main Screen

I want that 1277 in the above to be center of the screen regardless of size of the monitor.

and in another action, I would like to specify the x value as center of screen - 100px (i.e., 100px to the left of screen center).

Please advise.

Got it.


Note that you do not have to do this via the Use Variable action.

The Move and Click action can take the SCREEN functions directly, just start typing the function in the field and it will expand to make room for the expression.

Thanks. I changed it to

The last action of setting a delay between each action is not working properly. Hence why I had to add a couple of Pause actions.