I am trying to set mouse coordinates in order to call hs.eventtap.leftClick() at various locations, however I am struggling.
I am able to click at the starting coordinate:
local cursorLocation = hs.mouse.getAbsolutePosition()
hs.eventtap.leftClick(cursorLocation)
but unable to properly move the mouse after this initial click.
I have tried various alternatives, but none are working. Where is my error?
hs.mouse.setAbsolutePosition(cursorLocation.x+100, cursorLocation.y+100)
Variation 1b
hs.eventtap.leftClick(cursorLocation.x+100, cursorLocation.y+100 )
I am not even able to successfully specify the point coordinates)
Variations 2a
hs.mouse.setAbsolutePosition(100, 100)
Variations 2b
hs.eventtap.leftClick(100, 100)
Thanks for any help.