Programming macros for laptop screen clicks while using larger monitor

The answer may depend upon what specifies the location of the click.

If the click is always in the same place (say, relative to a corner of the application's front window), you should be able to scale the X and Y values for when the macros are running on the MacBook Pro‘s built-in screen.

For instance, have variables local Xscaler and local Yscaler, which both equal 1 for the big screen but which equal a different value for use with the small screen. That value is the multiplier for the X or Y value.

You could use the %ScreenResolution% token to determine which monitor is in use, and set the scaler values dependent upon that.

If, however, the “specific area” relies upon detecting an image, the challenge is greater. I don‘t have time to read through it right now, but it looks as though this discussion would be illuminating on that topic.