repeats / Repeat

Cross-platform mouse/keyboard record/replay and automation hotkeys/macros creation, and more advanced automation features.
Apache License 2.0
1.03k stars 76 forks source link

macbook M2 #44

Open andre2dash opened 1 year ago

andre2dash commented 1 year ago

there is absolutely no recording of any kind on an M2 with accessibility allowed for Iiput monitoring, full disk access running: openjdk 20.0.1 2023-04-18 OpenJDK Runtime Environment Temurin-20.0.1+9 (build 20.0.1+9) OpenJDK 64-Bit Server VM Temurin-20.0.1+9 (build 20.0.1+9, mixed mode)

hptruong93 commented 1 year ago

I suspect that the natively compiled machine code for the keyboard/mouse listener no longer works. However, that's quite unlikely because the code is using ApplicationServices/ApplicationServices.h which is already OSX abstraction.

I don't have an M2, so I can't try this out. First, please test if the compiled listener still works. You can find the listener at

/resources/nativehooks/osx/RepeatHook.out Try running that (e.g. `./resources/nativehooks/osx/RepeatHook.out`) and see whether that still works. When you run the program, it should print out stuff on every key stroke/mouse movements/mouse click. If that doesn't work, the listener source code is here https://github.com/repeats/SimpleNativeHooks/blob/master/src/org/simplenativehooks/osx/nativecontent/RepeatHook.c Can you try to compile and run that? The command to compile is that the top of the file.