It doesn’t have to be every 20minutes. Ideally, the interval would be flexible. The important thing is that it just beeps, or makes some sound, and doesn’t require me to acknowledge it, like click anything, or close pop-up windows. Also that it doesn’t keep beeping for the entire minute. Any suggestions?
No, but I’ve wanted something like this for years! I’d prefer an actual device like a kitchen timer, but a program would be great too. I’m glad I’m not the only one who wants one!
int main()
{
int i;
cout << "seconds:";
cin >> i;
while (1)
{
printf("\a");
Sleep(i * 1000);
}
return 0;
}
Edit: What would you plan to do with a program like this?
There are programs distributed through groups like corporate health centers, to inspire people at keyboards to remember to stretch and avoid some musculoskeletal problems.
Also, some wristwatches can be set to beep every half hour, sort of like grandfather clocks that would chime.
You didn’t state what OS you were using, but if you’re using Windows, I believe this will do everything you need it to do: Egg - Compact Multifunction Timer | ACAPsoft - For software As Compact As Possible
Train a road runnner! Meep meep!
To do this in Windows without installing any third-party software, paste the script below into a text file with a .vbs extension. Customize the value of the strSoundFile variable with the location of a sound file to play. Customize the value of the intWait variable with the time to wait between plays, in milliseconds.
Running the script will wait the specified interval, play the sound, and repeat infinitely until wscript.exe is manually killed through Task Manager.
strSoundFile = "C:\Windows\Media\Notify.wav"
intWait = 1200000
Do
WScript.Sleep intWait
Set objShell = CreateObject("Wscript.Shell")
strCommand = "sndrec32 /play /close " & chr(34) & strSoundFile & chr(34)
objShell.Run strCommand, 0, True
Loop
I keep getting the following error:
Line:8
Char: 5
Error: The system cannot find the file specified
Code: 80070002
Source: (null)
I’m on a Win 7 box, and it looks like sndrec32 is no longer part of the OS. I changed it to wmplayer and all was fine. I don’t know if there’s a more appropriate/lighter app for this.
From Snapfiles
A list of free timer programs may be of help. If you find a good one in the bunch let us know
Perfect Alarm Clock for Windows will do this. I love this little program. You can set it to run anything you want. If you set it to play the default windows beep every 20 minutes, it will do exactly what you want.
http://download.cnet.com/Perfect-Alarm-Clock/3000-2350_4-10431178.html
I use 1Time
http://www.sharewareconnection.com/1time.htm
Thanks for the suggestions. I’ll give them a try.
Now you have to tell us why you want such a program! Come on, out with it!
Autohotkey - download the program from the website to either just run the script or right-click the script and select compile to make an .exe that runs on any windows computer
Filename: beeper.ahk
Code:
It will use the system speaker if external speakers are missing.
I don’t know about weedy, but I want one to remind me to stay focused. I really could have used it when I was in school (and will need it again if I ever get around to applying to grad school) because my mind would often wander when I was studying, going off on a tangent from something I read. I could use it now for other tasks like cleaning the house or filing papers that cause me to be especially prone to distraction. People often suggested that I study with a timer to help plan my breaks better, but often when the timer would go off for a break I was either in a groove I didn’t want to break or I was already idling unconsciously and needed to get back to work, not take a break. Either way, stopping to reset a kitchen timer was a distraction. I just need a gentle reminder now and then that there is something I should be focused on, and I need the reminder itself not to be a distraction.
I want it as a meditation/mindfulness reminder. The idea is that every so often, you stop what you are doing and focus on your breathing, and what’s going on, and check what your brain is up to. The time interval is up to you. If you have to stop and switch off or reset the alarm then what is going is you resetting the alarm, and your brain is thinking about that, so it’s not as helpful.
That’s also a good use! With your username, I figured you needed to be reminded to relight the bong.