TinyApps.Org
Small is beautiful


 HOME

  0. Internet
  1. Text
  2. Graphics
  3. System
  4. File
  5. Misc
  6. Palm
  7. OS X

 BLOG

 DOCS

 FAQ

 RSS (?)





Automate mouse clicks in OS X's Terminal #
with Carsten Blüm's cliclick 2.1, which emulates mouse and keyboard events like moving the cursor, clicking, command clicking, and more. Running it in an infinite loop like so:

while : ; do cliclick c:. ; done

came in handy for a game that required a rapid succession of clicks.

A more practical example can be found in the included "Read me.html":

cliclick c:28,11 w:500 m:28,35 w:1000 kd:alt w:1000 c:. ku:alt

  • c:28,11 Click at position 28/11 (open the Apple menu)
  • w:500 Wait 500 milliseconds
  • m:28,35 Move the mouse to 28/35 (the first menu item, i.e.: "About this Mac"
  • w:1000 Wait 1000 milliseconds (so you have time to notice that the item is hilited)
  • kd:alt Press the "alt" modifier key
  • w:1000 Wait 1000 milliseconds (to give you the time to notice that "About this Mac" changed to "Open System Profiler")
  • c:. Click at the current position ("." is the current mouse position, just as in Terminal, "." is the current directory)
  • ku:alt Finally: release the "alt" key

/mac | Dec 21, 2012



Categories
/blosxom
/eink
/mac
/misc
/nix
/palm
/windows

Blosxom Archive
2013: 5 4 3 2 1
2012: 12 11 10 9 8 7 6 5 4 3 2 1
2011: 12 11 10 9 8 7 6 5 4 3 2 1
2010: 12 11 10 9 8 7 6 5 4 3 2 1
2009: 12 11 10 9 8 7 6 5 4 3 2 1
2008: 12 11 10 9 8 7 6 5 4 3 2 1
2007: 12 11 10 9 8 7 6 5 4 3 2 1
2006: 12 11 10 9 8 7 6 5 4 3 2 1
2005: 12 11 10

Blogger Archive
2005: 10 9 8 7 6 5 4 3 2 1
2004: 12 11 10 9 8 7 6 5 4 3 2 1
2003: 12 11 10 9 8 7 6

Ezine Archive
2004: 4 3 2 1
2003: 12 9 8 7 6 5 4 2 1
2002: 12 10 9 8 7 6 5 3 2 1
2001: 12 11 10