micmonay / keybd_event

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

Hold button functionality #26

Open ilveann opened 4 years ago

ilveann commented 4 years ago

Hello, guys! Can i somehow emulate hold button functionality on macOs without repeating "keypress"? Desirable result after this code kb.SetKeys(keybd_event.VK_D) kb.Press() is continuously adding a letter 'D' in any text editable zone until kb.Release() will be called. May be you can prompt me what macOs API I can use for it?