making a button do a command
Author |
Message |
turwaa
|
Posted: Thu Apr 05, 2012 3:12 pm Post subject: making a button do a command |
|
|
hey guyz, i am trying to create a piano
and i was wondering if when i pressed a certain key, it could play a noise? thank you |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Gadd
|
Posted: Thu Apr 05, 2012 3:55 pm Post subject: Re: making a button do a command |
|
|
Yup it sure can, Look around in the tutorial section you can find something do with sound.. you can add your own files or use keys like a, d, f ect and mess around with it.. if you dont know how to set the GUI up to do that take a look at the GUI tutorial as well. Part of being a computer scientist is solving problems Not go solve and have fun! ![Very Happy Very Happy](images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Thu Apr 05, 2012 3:55 pm Post subject: RE:making a button do a command |
|
|
yeah, that's possible. Perhaps you should try to do that. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
turwaa
|
Posted: Thu Apr 05, 2012 4:50 pm Post subject: RE:making a button do a command |
|
|
alright i'll try thanks! i'm new to this and im only 15, so im getting introduced to programming and so far im lovin it |
|
|
|
|
![](images/spacer.gif) |
Gadd
|
Posted: Thu Apr 05, 2012 4:57 pm Post subject: RE:making a button do a command |
|
|
That's great to here man, I think you should take a look at the tutorial section for sure, scroll through see what you know and start there, even looking at the start will help you. Be careful though its better to learn good programming practices so dont trust EVERYTHING on this site, learn to do things YOUR way and not by other people but learn to do it right at the same time Look around make some friends and complete your goals Also I will mention voodoo code to you. Its code that is written from hand. I know this may suck but its 100% worth it and will get you 4's in your classes. write down the code and document it... when you run into errors document it too.. other than that ASK ASK ASK ASK... dont lay things off and learn the solutions to your problem .. dont get the quick answer LEARN the hard way because not getting something is getting something in the long run. Have fun dude Turing dudes here are rlly good ![Smile Smile](images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|