2

Is it possible to specify how a mouse click point is recorded or processed in Watch Me Do?

had thought it was exact pixel position recorded but it seems that in a safari browser it is relative to the page scroll...

Is there another way to simulate actions clicking in exact locations (irrespectivec of browser scrollbar)?

Specifically, I would prefer a non-third party tool solution - using Automator if possible.

ina
  • 841

1 Answers1

2

Automator can ‘Run AppleScript’, and you can click at a coordinate using AppleScript:

tell application "System Events"
  click at {123,456}
end tell

How do I make the mouse click at current location using AppleScript?

grg
  • 201,078
  • Is there a way to convert the automator Watch Me Do clicks to the AppleScript absolute clicks? – ina Nov 15 '19 at 12:22
  • Rather, how would you get the applescript click coordinates? – ina Nov 16 '19 at 04:16
  • @ina I rely on the good old try and miss. – Mateus Ribeiro Nov 20 '19 at 13:21
  • Here's a trick to quickly find the absolute coordinates of any pixel on the screen: Press ⌘ + Shift + 4 to start a screenshot. Drag from the top, left corner of the screen to the desired point. The coordinates are displayed on the bottom right corner of the bounding square. Hit Escape to cancel the screenshot once you have the coordinates. – Raine Revere Feb 14 '23 at 14:14