Always private
DuckDuckGo never tracks your searches.
Learn More
You can hide this reminder in Search Settings
All regions
Argentina
Australia
Austria
Belgium (fr)
Belgium (nl)
Brazil
Bulgaria
Canada (en)
Canada (fr)
Catalonia
Chile
China
Colombia
Croatia
Czech Republic
Denmark
Estonia
Finland
France
Germany
Greece
Hong Kong
Hungary
Iceland
India (en)
Indonesia (en)
Ireland
Israel (en)
Italy
Japan
Korea
Latvia
Lithuania
Malaysia (en)
Mexico
Netherlands
New Zealand
Norway
Pakistan (en)
Peru
Philippines (en)
Poland
Portugal
Romania
Russia
Saudi Arabia
Singapore
Slovakia
Slovenia
South Africa
Spain (ca)
Spain (es)
Sweden
Switzerland (de)
Switzerland (fr)
Taiwan
Thailand (en)
Turkey
Ukraine
United Kingdom
US (English)
US (Spanish)
Vietnam (en)
Safe search: moderate
Strict
Moderate
Off
Any time
Any time
Past day
Past week
Past month
Past year
  1. stackoverflow.com

    Example: "c:12,34" will click at the point with x coordinate 12 and y coordinate 34. Instead of x and y values, you may also use ".", which means: the current position. Using "." is equivalent to using relative zero values "c:+0,+0". dc:x,y Will DOUBLE-CLICK at the point with the given coordinates.
  2. apple.stackexchange.com

    Since you already know how to double-click with cliclick, my answer focuses on the right-click and traditionally on a Mac one used to preform a right-click via control-click, and as such you need to do the same thing when using cliclick.. As an example, using cliclick in Terminal, it will attempt to open the manual page for cliclick.I said attempt to open because cliclick doesn't have a manual ...
  3. macscripter.net

    tell application "System Events" click at {100, 100} end tell ... Things that can click from Applescript you may try: Ones it looks like you've tried: System Events; ... to standartize this test tell window "MacScripter / simulating mouse clicks macos" to click UI element 3 click at {200, 105} delay 1 -- wait to focus the element click at ...
  4. discussions.apple.com

    the following code will supposedly click at x=100 y=200 in a given app: tell application "System Events" tell process "X" click at {100, 200} end tell. end tell. I've never actually used this feature - it says it will click at {x,y} in global (assumedly desktop) coordinates, but it might take some poking around to to get it clicking in the ...
  5. apple.stackexchange.com

    Because of this location, in my AppleScript code and in Terminal app, ... In AppleScript it's telling cliclick to click at current mouse location. This AppleScript code works for me using the latest version of macOS Mojave. repeat 3 times -- Enter Your Desired Loop Count -- Clicks At Current Mouse Location do shell script "/usr/local/bin ...
  6. apple.stackexchange.com

    You can simulate a mouse click with AppleScript code like this: tell application "System Events" click at {123,456} end tell This means to simulate a click of the mouse at coordinate (123,456). To click at the current location you'll need to first find the current location of the mouse pointer, if you don't know it already.
  7. remarkablemark.org

    AppleScript requires the full binary path to run cliclick. The script does the following: Wait 15 seconds (line 1). Click at the current mouse location (line 4). Wait 1 second (line 5). Repeat steps 2 to 3 nine more times (lines 3-6). To run the script, press the play button or ⌘+R (Command-R). To stop the script, press the stop button or ⌘+.
  8. macscripter.net

    Hello, This Applescript returns coordinates of a specific UI element. Is there anyway to write another line of Applescript to use the returned coordinates for a mouse click? I know I could code to always click at the current location {944.5, 844.0}, but the UI may move around and the UI element my change locations. So the idea is to use the UI element ID to get the coordinates every time I ...
  9. stackoverflow.com

    How can I control click with AppleScript? This script should work, but it doesn't. activate application "Finder" tell application "System Events" tell process "Finder" key down control delay 1 click at {600, 600} -- {from left, from top} delay 1 key up control end tell end tell
  10. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

  1. below an example with python in applescript , python is living in your system naturaly,no installation to be planned.

    set x to 30
    
    set y to 5
    
    set l to 50 -- click same location 50 times
    
    
    
    do shell script "
    
    /usr/bin/python <<END
    
    import sys
    
    import time
    
    from Quartz.CoreGraphics import *
    
    def mouseEvent(type, posx, posy):
    
              theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
    
              CGEventPost(kCGHIDEventTap, theEvent)
    
    def mousemove(posx,posy):
    
              mouseEvent(kCGEventMouseMoved, posx,posy);
    
    def mouseclick(posx,posy):
    
              mouseEvent(kCGEventLeftMouseDown, posx,posy);
    
              mouseEvent(kCGEventLeftMouseUp, posx,posy);
    
    ourEvent = CGEventCreate(None);
    
    currentpos=CGEventGetLocation(ourEvent);             # Save current mouse position
    
    for x in range(0, " & l & "):
    
              mouseclick(" & x & "," & y & ");
    
    mousemove(int(currentpos.x),int(currentpos.y));      # Restore mouse position
    
    END"

    --deek5

    Was this helpful?
Custom date rangeX