Closed BrettDean closed 2 years ago
func leftclick(){ let task = Process() task.launchPath = "/usr/local/bin/cliclick" task.arguments = ["tc:33,38"] task.launch() task.waitUntilExit() } leftclick()
Use shell, and then give the appropriate permissions in the security and privacy--accessibility
func leftclick(){ let task = Process() task.launchPath = "/usr/local/bin/cliclick" task.arguments = ["tc:33,38"] task.launch() task.waitUntilExit() } leftclick()