I've tried thinking this one through and came up empty, but I can't help but thinking that I must be missing something.
I'd like to be able to have some macros which look for "I am using Keyboard Maestro on this local computer" vs "I am using Keyboard Maestro via screen sharing / VNC / etc".
I can't think of a way to do that, but obviously the system must have some way to tell the difference… is there a way for me to access that info ?
When I control my Mac remotely I use Chrome Remote Desktop and when I use it there's a small green window that appears on the bottom of my Mac saying that my desktop iOS currently being shared. If I wanted to I could detect that window using the Find Image action.