-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kp: doesnt work (MacOS 12.6.2) #164
Comments
I am experiencing the same problem |
Same with me. |
Ditto on macOS Venture 13.5 |
any update? same problem..... |
I have finally been able to reproduce What was/is really odd is that # Does not work
cliclick kp:brightness-up
# Works
cliclick kp:brightness-up p:'Hello world' This looked an obvious indicator for a timing issue in newer macOS versions. For anyone having this problem, please try if this modification solves the issue: // In ActionExecutor.m, replace lines 89 thru 91 with:
if (options.isLastAction) {
waitingtime.tv_sec = 0;
waitingtime.tv_nsec = 1000000; // Arbitraray dummy value
nanosleep(&waitingtime, NULL);
} else {
nanosleep(&waitingtime, NULL);
}
// Cf. https://github.com/BlueM/cliclick/blob/master/ActionExecutor.m#L89 I am very much interested to hear if that changes the behavior. |
Hi BlueM,
The same error with |
@stephen714: the problem is caused by an API which is no longer included in the macOS 15 SDK. For testing purposes, you can simply remove all code in the - (void)performActionWithData:(NSString *)data
withOptions:(struct ExecutionOptions)options {
} |
when using the command kp
(I've not tested all)
Nothing happens
weirdly, putting 2 commands works, le:
cliclick kp:brightness-down kp:brightness-up
or
cliclick ku:cmd kp:brightness-up
(The ku:cmd is just there to make a NOP command)
MacOS 12.6.2, iMac late 2015
The text was updated successfully, but these errors were encountered: