Continuously monitor mouse location to trigger an alert

I'd like to create a macro that when running will continuously monitor the mouse location. For example if I move the mouse past an X coordinate value it should play a warning sound.

I think I have half of this figured out but KM only runs once through all the actions and of course when the macro is done it no longer monitors the mouse location. Is there way to make the macro watch the mouse constantly?

This is what I got so far:

2019-11-08_10-15-32

BTW: I did try to find an answer on this forum but couldn't :confused:

Thanks!

Yes, there is. Just stick it in a While loop:

image

When used with a key condition like this, the macro will continue to run until the key (Escape, in this case) is pressed, letting you easily stop the macro when it's no longer needed..

1 Like

Thank you!

1 Like