Install
openclaw skills install mouse-keyboardControl mouse and keyboard on Mac using cliclick. Use when you need to automate clicking, typing, or controlling the mouse cursor.
openclaw skills install mouse-keyboardUse cliclick tool for mouse/keyboard automation on Mac.
Use exec to run cliclick commands.
c:X,Y - Click at coordinates X,Yc:~100,~200 - Click at relative positionw:500 - Wait 500mst:hello - Type "hello"kd:cmd - Key down commandku:cmd - Key up commandp:return - Press return/enterp:space - Press spacep:tab - Press tabm:X,Y - Move mouse to X,Ydp - Double clickrc:X,Y - Right click at X,Ycliclick c:500,300
cliclick t:Hello World
cliclick c:500,300 && cliclick t:username
cliclick kd:cmd ku:cmd # Press cmd
cliclick m:100,100 && cliclick c:100,100
Use cliclick p to print current mouse position, or use macOS screenshot tool (Shift+Cmd+4) to get coordinates.
osascript for more complex keyboard operationssleep for timing