|
C++ please help
|
View this Thread in Original format
| Vaedyn |
Heya, heres a question for you programming buffs
Heres what I would like to do, I want a program to run in the background or even just run and when it detects mouse movement to play a certain sound.
Could someone help me out here. Need it asap.
Thanks,
Vaedyn |
|
|
| Vaedyn |
Or even better...could someone tell me how to change the sound windows makes when an incorrect password is entered!?
Thanks,
Vaedyn |
|
|
| jdat |
| quote: | Originally posted by Vaedyn
Or even better...could someone tell me how to change the sound windows makes when an incorrect password is entered!?
Thanks,
Vaedyn |
I can't answer your original question; but what you are asking for right there is easy.
Go in your 'sound' settings in your control panel. I believe it is the sounds 'exclamation' that comes on when you type an incorrect password. Change the wave file it uses and VOILA! |
|
|
| brian |
| quote: | Originally posted by Vaedyn
Heres what I would like to do, I want a program to run in the background |
Try looking up the fork() system call. I beleive it provides the functionality you are looking for. |
|
|
| udham |
You can write a small service and get it to analyze all mouse change events (or any other events that you might be interested in).
If an event that you're interested in comes up then spawn a new thread and play the .wav file or do whatever action you want to do.
I'm not sure if this would be an overkill for what you want but hope it helps. |
|
|
| whiskers |
| must be as much fun as trying to program a recursive sorting algorithm in lisp :D |
|
|
| RussianRacerX |
| quote: | Originally posted by Vaedyn
Or even better...could someone tell me how to change the sound windows makes when an incorrect password is entered!?
Thanks,
Vaedyn |
jdat would be correct with thaat one, although operating systems might differ slightly in the place the sounds are changed |
|
|
|
|