Merge pull request #213 from jamesrhurst/autotype-delay

Wait 0.1s between the keydown and keyup event
This commit is contained in:
Michael Starke
2014-08-09 10:51:21 +02:00

View File

@@ -196,6 +196,7 @@
/* Send the event */
CGEventPost(kCGSessionEventTap, pressKey);
usleep(100000);
CGEventPost(kCGSessionEventTap, releaseKey);
CFRelease(pressKey);