micmonay / keybd_event

For simulate key press in Linux, Windows and Mac in golang
MIT License
380 stars 57 forks source link

Example not working on Mac #20

Closed massi-ang closed 4 years ago

massi-ang commented 4 years ago

I have tried the code in the example on Mac, but nothing gets printed out. The same code works fine on Windows.

micmonay commented 4 years ago

My MacOS is old and has not a recent update, but exemple is work fine. I need more information to understand.

micmonay commented 4 years ago

I have found a possible fix. Please read the next threads and reply if this solution is good

micmonay commented 4 years ago

I have forced update on my MacBook 2010 at 10.15. I have same bug and I have found the solution, you must set accessibility authorization on the parameters in MacOS. Example

micmonay commented 4 years ago

Is this solution right ?

massi-ang commented 4 years ago

I did not have time to check it has the project I was working on has been parked. I think that would be the right solution though.

elbuki commented 3 years ago

I know this issue is closed but I just want to confirm that the suggested solution worked for me. Thanks!