Computer Science Canada playing sound when any button is pressed |
Author: | junkpro11 [ Sun May 09, 2004 10:34 am ] |
Post subject: | playing sound when any button is pressed |
how do u play a sound whenever anything on the keyboard is pressed? |
Author: | Paul [ Sun May 09, 2004 11:18 am ] | ||
Post subject: | |||
This works ![]()
|
Author: | Mazer [ Sun May 09, 2004 11:43 am ] | ||
Post subject: | |||
![]() How about this instead?
|
Author: | junkpro11 [ Sun May 09, 2004 2:58 pm ] |
Post subject: | |
can u explain how the code works? it would help alot |
Author: | Dan [ Sun May 09, 2004 3:40 pm ] | ||
Post subject: | |||
|
Author: | s_climax [ Sun May 09, 2004 4:37 pm ] | ||
Post subject: | |||
It works better to do this.
|
Author: | Mazer [ Sun May 09, 2004 5:38 pm ] |
Post subject: | |
But that halts the program waiting for the user to give input, that's why I had the if statement with hasch. |
Author: | recneps [ Sun May 09, 2004 6:42 pm ] |
Post subject: | |
whgen i run that and hit the key before it stop, my comp bluscreens, wtf? :/ |
Author: | Dan [ Sun May 09, 2004 11:13 pm ] |
Post subject: | |
both verson work fine for me, dose your comp have a sound card? |