<https://www.autoitscript.com/forum/topic/206798-keypress-sounds-script-lagging-locked/>
<http://schema.org/text>
"Hey there, I'm pretty sure most of you have noticed the fancy beep sounds in hacker movies when they type something on their keyboards.\n \n\n\n\tcall me crazy but I ABSOLUTELY LOVE THIS!\n \n\n\n\tSo I went ahead and tried to write a small script to play a beep sound every time I press a key.\n \n\n\n\tI've sorted it into 4 different sounds. 1 for most letter keys and symbols, another one for Enter key, one for the escape key and one for special keys like numlock, function keys and so on.\n \n\n\n\tWell it works. I'm using a very short .wav sound file that I edited to be as short as possible with no gaps.\n \n\n\n\tBUT it's slow.. Keys are being sent much slower than before, especially when I hold down a key.\n \n\n\n\tI can type very fast so I want it to react immediately. What I don't understand, I'm using the Autoit Function \"_SoundPlay\"\n \n\n\n\tI also tried the normal SoundPlay function and I still don't know the difference between them xD\n \n\n\n\tAnd there's a parameter called \"wait\" which tells the function to either wait for the sound file to finish playing before it goes over to the next command or ignore it and (actually) play the sound file but just go on no matter if it's still playing. But this exactly doesnt seem to work. I have a delay after each key press before the key is actually written down in notepad or whatever.\n \n\n\n\tHow can I fix this? script attached.\n \n\n\n\t&lt;snip&gt;\n "
<https://www.autoitscript.com/forum/topic/206798-keypress-sounds-script-lagging-locked/>