I'm trying to create a program that plays a continuous "beep" sound anytime 3 seconds have passed without any key being pressed. The beep sound continues until another key is pressed, which renews the 3 second countdown.
I want the program to run in the background while I'm typing. However, while the script is running, other programs (such as Microsoft Word) do not respond to keystrokes. I tried setting BlockInput to Off, but that didn't solve the problem. Any ideas on getting the keyboard to interact with other programs? Thanks!
loop
{
Transform, CtrlQ, Chr, 17
Input, KeyPress, L1 M T3
if KeyPress = %CtrlQ%
ExitApp
if (ErrorLevel = "Timeout")
{
Run, Beep.mp3, Hide
Input, Cont, L1
if (ErrorLevel = "Max")
{
WinClose, Beep.mp3 - SMPlayer
}
}
}