octalmage/robotjs

Possibly sleep after mouse/key events.

octalmage opened this issue · 2 comments

Apparently on some machines a delay is needed after a mouse move or click before the next action will work. This is probably an OS limitation.

Since this is in C I can use usleep, I just need to find what the limitation is. 2 miliseconds works on Mac.

This delay should be configurable, like AutoHotkey's SetMouseDelay.

I added a 10 miliseconds delay to the mouse events and the mouse tests now pass 95% of the time.